This commit is contained in:
Kovid Goyal 2023-03-04 06:47:26 +05:30
parent 74a59d04ad
commit f14d66ce08
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -80,7 +80,7 @@ def _match(query, value, matchkind, use_primary_find_in_search=True, case_sensit
if regex.search(query, t, flags) is not None:
return True
except regex.error as e:
raise ParseException(_('Invalid regular expression: {}').format(str(e)))
raise ParseException(_('Invalid regular expression: {!r} with error: {}').format(query, str(e)))
elif matchkind == ACCENT_MATCH:
if primary_contains(query, t):
return True