From 871153778b73dede3babb5ebfa4491c4c541c5b6 Mon Sep 17 00:00:00 2001 From: Bruno Galindro da Costa Date: Fri, 27 Jan 2017 17:26:11 -0200 Subject: [PATCH] Remove hashtag comments --- bash-ini-parser | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bash-ini-parser b/bash-ini-parser index 0e4a799..75d7915 100644 --- a/bash-ini-parser +++ b/bash-ini-parser @@ -30,6 +30,8 @@ function cfg_parser { debug ini=( ${ini[*]//;*/} ) # remove comments with ; debug + ini=( ${ini[*]//\#*/} ) # remove comments with # + debug ini=( ${ini[*]/#+([[:space:]])/} ) # remove init whitespace debug "whitespace around" ini=( ${ini[*]/*([[:space:]])=*([[:space:]])/=} ) # remove whitespace around =