aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Rousse <guillomovitch@mandriva.org>2009-03-29 21:47:46 +0000
committerGuillaume Rousse <guillomovitch@mandriva.org>2009-03-29 21:47:46 +0000
commit0389e3f728699e16bb2d7b2de664a17e6bd6db22 (patch)
tree89e1bab743480e38c6f8f079a554f7183338fa08
parente0c73b6bb4e0351cc51a11d09a76c26a725a528d (diff)
downloadspec-helper-0389e3f728699e16bb2d7b2de664a17e6bd6db22.tar
spec-helper-0389e3f728699e16bb2d7b2de664a17e6bd6db22.tar.gz
spec-helper-0389e3f728699e16bb2d7b2de664a17e6bd6db22.tar.bz2
spec-helper-0389e3f728699e16bb2d7b2de664a17e6bd6db22.tar.xz
spec-helper-0389e3f728699e16bb2d7b2de664a17e6bd6db22.zip
ignore variables names protected by '\' (#49277)
-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):