X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/6c0f80a0b436aa78f3245c5a0b10d5d49a9a7dec..a0655bd8dbfc709524e24581309618f92225d216:/src/catalogue/views.py diff --git a/src/catalogue/views.py b/src/catalogue/views.py index 09f48c7d4..50dde9f5b 100644 --- a/src/catalogue/views.py +++ b/src/catalogue/views.py @@ -321,7 +321,7 @@ def _no_diacritics_regexp(query): def repl(m): l = m.group() - return u"(%s)" % '|'.join(names[l]) + return u"(?:%s)" % '|'.join(names[l]) return re.sub(u'[%s]' % (u''.join(names.keys())), repl, query)