misc: do not allow single quotes in custom identifiers (#89816) #1427
Loading…
Reference in New Issue
No description provided.
Delete Branch "wip/89816-custom-id-quote"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -502,4 +502,3 @@
@classmethod
def force_valid_id_characters(cls, value):
value = unidecode.unidecode(value)
value = re.sub(r'[^\w\s\'\-_]', '', unidecode.unidecode(value)).strip()
Il y avait deux fois l'appel à unidecode.unidecode, inutile, je nettoie.
@ -504,3 +504,2 @@
value = unidecode.unidecode(value)
value = re.sub(r'[^\w\s\'\-_]', '', unidecode.unidecode(value)).strip()
value = re.sub(r'\s+', '-', value)
value = re.sub(r'[\s\']+', '-', value)
Remplacement des apostrophes par des tirets.
WIP: misc: do not allow single quotes in custom identifiers (#89816)to misc: do not allow single quotes in custom identifiers (#89816)