mirror of
https://gitlab.crans.org/bde/nk20
synced 2024-12-22 23:42:25 +00:00
[note] Update normalize algorithm
This commit is contained in:
parent
7a7cc2bfef
commit
fedfcf27b5
@ -202,7 +202,7 @@ class Alias(models.Model):
|
||||
for char in unicodedata.normalize('NFKD', string.casefold())
|
||||
if all(not unicodedata.category(char).startswith(cat)
|
||||
for cat in {'M', 'P', 'Z', 'C'})
|
||||
)
|
||||
).casefold()
|
||||
|
||||
def save(self, *args, **kwargs):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user