Skip to content

Commit

Permalink
cyrillic is not bad text (#74)
Browse files Browse the repository at this point in the history
## About The Pull Request
cyrillic is not bad text
  • Loading branch information
larentoun authored Apr 15, 2024
1 parent 0badd5a commit 344b117
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 @@ -92,7 +92,7 @@
if(ascii_only)
if(length(text) > max_length)
return null
var/static/regex/non_ascii = regex(@"[^\x20-\x7E\t\n]")
var/static/regex/non_ascii = regex(@"[^\x20-\x7E\t\n\u0400-\u04FF]") // BANDASTATION EDIT: Allow cyrillic symbols
if(non_ascii.Find(text))
return null
else if(length_char(text) > max_length)
Expand Down

0 comments on commit 344b117

Please sign in to comment.