mirror of
https://gitlab.crans.org/bde/nk20
synced 2024-11-26 18:37:12 +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())
|
for char in unicodedata.normalize('NFKD', string.casefold())
|
||||||
if all(not unicodedata.category(char).startswith(cat)
|
if all(not unicodedata.category(char).startswith(cat)
|
||||||
for cat in {'M', 'P', 'Z', 'C'})
|
for cat in {'M', 'P', 'Z', 'C'})
|
||||||
)
|
).casefold()
|
||||||
|
|
||||||
def save(self, *args, **kwargs):
|
def save(self, *args, **kwargs):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user