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 =