mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1177114 (Cannot search for author name containing '"')
This commit is contained in:
parent
49578b23e6
commit
bb9466e58e
@ -135,7 +135,7 @@ class Parser(object):
|
|||||||
(r'[()]', lambda x,t: (1, t)),
|
(r'[()]', lambda x,t: (1, t)),
|
||||||
(r'@.+?:[^")\s]+', lambda x,t: (2, unicode(t))),
|
(r'@.+?:[^")\s]+', lambda x,t: (2, unicode(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)
|
(r'\s+', None)
|
||||||
], flags=re.DOTALL)
|
], flags=re.DOTALL)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user