From: Richard Kettlewell Date: Sun, 18 May 2008 11:34:37 +0000 (+0100) Subject: Fix disorder.py string parsing to not reject "" X-Git-Tag: 4.0~80 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/commitdiff_plain/0b96f40320c4d980c7e338ccfc525dbf027ed528?ds=sidebyside Fix disorder.py string parsing to not reject "" --- diff --git a/python/disorder.py.in b/python/disorder.py.in index 595ee92..23f840c 100644 --- a/python/disorder.py.in +++ b/python/disorder.py.in @@ -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}) ?(.*)")