chiark
/
gitweb
/
~mdw
/
disorder
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
abf54ac
)
Fix disorder.py string parsing to not reject ""
author
Richard Kettlewell
<rjk@greenend.org.uk>
Sun, 18 May 2008 11:34:37 +0000
(12:34 +0100)
committer
Richard Kettlewell
<rjk@greenend.org.uk>
Sun, 18 May 2008 11:34:37 +0000
(12:34 +0100)
python/disorder.py.in
patch
|
blob
|
blame
|
history
diff --git
a/python/disorder.py.in
b/python/disorder.py.in
index 595ee9254ea324cbbc0272a4e0f73d9bd2cdfe04..23f840cccd1749de5746627c3e34566a2676d103 100644
(file)
--- 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]+")
# 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}) ?(.*)")
_unquoted = re.compile("[^\"' \\t\\n\\r][^ \t\n\r]*")
_response = re.compile("([0-9]{3}) ?(.*)")