Fix #1177114 (Cannot search for author name containing '"')

This commit is contained in:
Kovid Goyal 2013-05-07 09:23:58 +05:30
parent 49578b23e6
commit bb9466e58e

View File

@ -135,7 +135,7 @@ class Parser(object):
(r'[()]', lambda x,t: (1, t)),
(r'@.+?:[^")\s]+', lambda x,t: (2, unicode(t))),
(r'[^"()\s]+', lambda x,t: (2, unicode(t))),
(r'".*?((?<!\\)")', lambda x,t: (3, t[1:-1])),
(r'".*?((?<!\\)")', lambda x,t: (3, t[1:-1].replace('\\"', '"'))),
(r'\s+', None)
], flags=re.DOTALL)