Fix for escaping single quote character(s)

This commit is contained in:
Miroslav Stampar 2013-01-21 11:21:41 +01:00
parent 3200134b3b
commit 65c55a6a49

View File

@ -22,7 +22,7 @@ class Syntax:
retVal = expression
if quote:
for item in re.findall(r"'[^']+'", expression, re.S):
for item in re.findall(r"'[^']*'+", expression, re.S):
retVal = retVal.replace(item, escaper(item[1:-1]))
else:
retVal = escaper(expression)