Skip to content

Commit

Permalink
[NON-MODULAR] Allow cyrillic support for one proc (#56)
Browse files Browse the repository at this point in the history
## About The Pull Request
Добавляет поддержку кириллицы для одного прока

![Screenshot 2024-04-12
211746](https://github.com/tgstation/tgstation/assets/31931237/6edbd4bd-64cf-47ba-b166-044367c2d229)
  • Loading branch information
larentoun authored Apr 13, 2024
1 parent 1527fd3 commit 13d524e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/__HELPERS/text.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 13d524e

Please sign in to comment.