Fixed slug case converter

This commit is contained in:
ArtyIF 2022-07-25 14:30:16 +03:00
parent 8f8a9f5fe4
commit efe9b8248c

View file

@ -47,7 +47,7 @@ from .app_type_dialog import AdwcustomizerAppTypeDialog
from .custom_css_group import AdwcustomizerCustomCSSGroup
def to_slug_case(non_slug):
return re.sub(r"[^0-9A-Za-z]+", "-", anyascii(non_slug.lower())).strip("-")
return re.sub(r"[^0-9a-z]+", "-", anyascii(non_slug).lower()).strip("-")
class AdwcustomizerApplication(Adw.Application):
"""The main application singleton class."""