From 3cc0e505ab46bb9826a75291cbbe67855145a46c Mon Sep 17 00:00:00 2001 From: larentoun <31931237+larentoun@users.noreply.github.com> Date: Fri, 12 Apr 2024 21:17:03 +0300 Subject: [PATCH 1/2] add cyrillic support --- code/__HELPERS/text.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/__HELPERS/text.dm b/code/__HELPERS/text.dm index 895c0aeb66b16..58976fcc227d1 100644 --- a/code/__HELPERS/text.dm +++ b/code/__HELPERS/text.dm @@ -1177,7 +1177,7 @@ GLOBAL_LIST_INIT(binary, list("0","1")) /// Removes all non-alphanumerics from the text, keep in mind this can lead to id conflicts /proc/sanitize_css_class_name(name) - var/static/regex/regex = new(@"[^a-zA-Z0-9]","g") + var/static/regex/regex = new(@"[^a-zA-Z0-9а-яА-ЯёЁ]","g") return replacetext(name, regex, "") /// Converts a semver string into a list of numbers From f978dbb2cb66eb0de5a14863710f8f8c39bf9240 Mon Sep 17 00:00:00 2001 From: larentoun <31931237+larentoun@users.noreply.github.com> Date: Fri, 12 Apr 2024 21:20:38 +0300 Subject: [PATCH 2/2] add comment --- code/__HELPERS/text.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/__HELPERS/text.dm b/code/__HELPERS/text.dm index 58976fcc227d1..bb7f63149bbcd 100644 --- a/code/__HELPERS/text.dm +++ b/code/__HELPERS/text.dm @@ -1177,7 +1177,7 @@ GLOBAL_LIST_INIT(binary, list("0","1")) /// Removes all non-alphanumerics from the text, keep in mind this can lead to id conflicts /proc/sanitize_css_class_name(name) - var/static/regex/regex = new(@"[^a-zA-Z0-9а-яА-ЯёЁ]","g") + var/static/regex/regex = new(@"[^a-zA-Z0-9а-яА-ЯёЁ]","g") // BANDASTATION EDIT: Add Cyrillic support for this proc return replacetext(name, regex, "") /// Converts a semver string into a list of numbers