From 65c55a6a4920d67b10d705909864124776d3a2dc Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Mon, 21 Jan 2013 11:21:41 +0100 Subject: [PATCH] Fix for escaping single quote character(s) --- plugins/generic/syntax.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/generic/syntax.py b/plugins/generic/syntax.py index b6f4df1fc..05b658d00 100644 --- a/plugins/generic/syntax.py +++ b/plugins/generic/syntax.py @@ -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)