chiark / gitweb /
Fix disorder.py string parsing to not reject ""
authorRichard Kettlewell <rjk@greenend.org.uk>
Sun, 18 May 2008 11:34:37 +0000 (12:34 +0100)
committerRichard Kettlewell <rjk@greenend.org.uk>
Sun, 18 May 2008 11:34:37 +0000 (12:34 +0100)
python/disorder.py.in

index 595ee92..23f840c 100644 (file)
@@ -62,8 +62,8 @@ _userconf = True
 
 # various regexps we'll use
 _ws = re.compile(r"^[ \t\n\r]+")
-_squote = re.compile("'(([^\\\\']|\\\\[\\\\\"'n])+)'")
-_dquote = re.compile("\"(([^\\\\\"]|\\\\[\\\\\"'n])+)\"")
+_squote = re.compile("'(([^\\\\']|\\\\[\\\\\"'n])*)'")
+_dquote = re.compile("\"(([^\\\\\"]|\\\\[\\\\\"'n])*)\"")
 _unquoted = re.compile("[^\"' \\t\\n\\r][^ \t\n\r]*")
 
 _response = re.compile("([0-9]{3}) ?(.*)")