mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix searching for escaped double quotes.
This commit is contained in:
parent
80f0d7849e
commit
88c3b111d7
@ -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