This commit is contained in:
SandPoot
2023-12-01 14:54:05 -03:00
parent c9b0dedf77
commit f698cbb8a7
51 changed files with 604 additions and 606 deletions
+8
View File
@@ -828,3 +828,11 @@ GLOBAL_LIST_INIT(binary, list("0","1"))
if(prob(15))
corrupted_text += pick(corruption_options)
return corrupted_text
/proc/format_text(text)
return replacetext(replacetext(text,"\proper ",""),"\improper ","")
/// 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")
return replacetext(name, regex, "")