Fixes a funny regex moment quoting half the file in weak editors (#58653)

This commit is contained in:
Swiftfeather
2021-04-25 02:16:48 -07:00
committed by GitHub
parent 43c8d8c0a9
commit 55e1dcf6bf
+1 -1
View File
@@ -160,7 +160,7 @@
. = ""
var/newletter = ""
var/rawchar = ""
var/static/regex/nostutter = regex(@@[aeiouAEIOU "'()[\]{}.!?,:;_`~-]@)
var/static/regex/nostutter = regex(@@[aeiouAEIOU ""''()[\]{}.!?,:;_`~-]@)
for(var/i = 1, i <= leng, i += length(rawchar))
rawchar = newletter = phrase[i]
if(prob(80) && !nostutter.Find(rawchar))