Viewer: Ignore the zero width non-joiner character in searches

This commit is contained in:
Kovid Goyal 2020-07-06 08:38:58 +05:30
parent 78c53c9da9
commit c61cc4b14d
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -54,7 +54,7 @@ class BusySpinner(QWidget): # {{{
quote_map= {'"':'"“”', "'": "'"}
qpat = regex.compile(r'''(['"])''')
spat = regex.compile(r'(\s+)')
invisible_chars = '(?:[\u00ad\u200d]{0,1})'
invisible_chars = '(?:[\u00ad\u200c\u200d]{0,1})'
def text_to_regex(text):