Commit be76bf48 authored by ynerant's avatar ynerant

Add "De" as unwanted title prefix

parent 4198ea8a
Pipeline #4121 passed with stages
in 5 minutes and 19 seconds
......@@ -38,6 +38,7 @@ class Command(BaseCommand):
if all(not unicodedata.category(char).startswith(cat)
for cat in {'M', 'P', 'Z', 'C'}) or char == ' '
).casefold().upper()
title_normalized = re.sub(r'^DE ', '', title_normalized)
title_normalized = re.sub(r'^LE ', '', title_normalized)
title_normalized = re.sub(r'^LA ', '', title_normalized)
title_normalized = re.sub(r'^LES ', '', title_normalized)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment