Skip to content

Commit

Permalink
fix alphabet search '#' matching accented characters
Browse files Browse the repository at this point in the history
  • Loading branch information
Fasand committed Nov 3, 2020
1 parent b864633 commit 43152b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Seeder/www/constants.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
''' Key is upper letter, value is upper regex to match it + diacritics '''
ALPHABET_SEARCH_CONVERSION = {
'#': r'[^a-zA-Z]',
'#': r'[^A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]', # a bit hacky without using Unicode regex
'A': r'[AÁ]',
'B': r'B',
'C': r'[CČ]',
Expand Down

0 comments on commit 43152b8

Please sign in to comment.