Commit 98f1360b authored by Pierre Smeyers's avatar Pierre Smeyers
Browse files

fix(unscope_vars): replace glob pattern matching with regex matching

parent 90ed1d03
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -241,7 +241,7 @@ stages:
        _cmp_val_prefix="scoped__${_target_var}__${_condition}__${_cond_var}__${_test_op}__"
        _cmp_val=${_scoped_var#"$_cmp_val_prefix"}
        # manage 'ignore case'
        if [[ "$_test_op" == *_ic ]]
        if [[ "$_test_op" =~ _ic$ ]]
        then
          # lowercase everything
          _cond_val=$(echo "$_cond_val" | tr '[:upper:]' '[:lower:]')