mirror of
https://github.com/GradienceTeam/Gradience.git
synced 2024-07-01 00:49:56 +00:00
Fixed slug case converter
This commit is contained in:
parent
8f8a9f5fe4
commit
efe9b8248c
|
@ -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."""
|
||||
|
|
Loading…
Reference in a new issue