Commit 1afbbc27 authored by Pierre Smeyers's avatar Pierre Smeyers
Browse files

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

parent 4c9e707d
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
{
  "permissions": {
    "allow": [
      "Bash(xargs ls:*)",
      "Bash(grep:*)"
    ]
  }
}
+1 −1
Original line number Diff line number Diff line
@@ -576,7 +576,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:]')