diff --git a/erepublik/utils.py b/erepublik/utils.py index a748c7b..46d1a92 100644 --- a/erepublik/utils.py +++ b/erepublik/utils.py @@ -330,5 +330,5 @@ def slugify(value, allow_unicode=False) -> str: value = unicodedata.normalize('NFKC', value) else: value = unicodedata.normalize('NFKD', value).encode('ascii', 'ignore').decode('ascii') - value = re.sub(r'[^\w\s-]', '', value).strip().lower() + value = re.sub(r'[^\w\s-]', '_', value).strip().lower() return re.sub(r'[-\s]+', '-', value)