diff --git a/func/main.sh b/func/main.sh index b892a61b..e9c17455 100644 --- a/func/main.sh +++ b/func/main.sh @@ -594,7 +594,7 @@ is_common_format_valid() { check_result $E_INVALID "invalid $2 format :: $1" fi if [[ $1 =~ \* ]]; then - if [[ "$(echo $1 | grep -o \*\. |wc -l)" -eq 0 ]] && [[ $1 != '*' ]] ; then + if [[ "$(echo $1 | grep -o '\*\.' |wc -l)" -eq 0 ]] && [[ $1 != '*' ]] ; then check_result $E_INVALID "invalid $2 format :: $1" fi fi