aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xgprintify.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gprintify.py b/gprintify.py
index b1e8a0a..abdbbf1 100755
--- a/gprintify.py
+++ b/gprintify.py
@@ -16,7 +16,7 @@ import re
echo_regex=re.compile('^(.*)echo +(-[en]+)?')
string_regex=re.compile('^([^"]*?)\$?"([^"]*[^\\\\])"([^>\|\[\]]*|.*\|\|.*)$')
-var_regex=re.compile('(\$[a-zA-Z0-9_{}]+(?:\[\$[a-zA-Z0-9_{}]+\])?}?)')
+var_regex=re.compile('(?<!\\\)(\$[a-zA-Z0-9_{}]+(?:\[\$[a-zA-Z0-9_{}]+\])?}?)')
init_func_regex=re.compile('(.*(action|success|failure|passed)\s*.*)')
def process_start(start):