diff --git a/scripts/make-folklist.py b/scripts/make-folklist.py index 11cf8ce27..e2389e6ee 100644 --- a/scripts/make-folklist.py +++ b/scripts/make-folklist.py @@ -28,13 +28,13 @@ def troggle_slugify(longname): This function copied instact from troggle/parsers/people/py """ slug = longname.strip().lower().replace(" ","-") - slug = re.sub('\([^\)]*\)','',slug) # remove nickname in brackets + slug = re.sub(r'\([^\)]*\)','',slug) # remove nickname in brackets slug = slug.replace('é', 'e') slug = slug.replace('á', 'a') slug = slug.replace('ä', 'a') slug = slug.replace('&', '') # otherwise just remove the & slug = slug.replace(';', '') # otherwise just remove the ; - slug = re.sub('<[^>]*>','',slug) # remove + slug = re.sub(r'<[^>]*>','',slug) # remove if len(slug) > 40: # slugfield is 50 chars slug = slug[:40]