diff --git a/code/game/say.dm b/code/game/say.dm index 3cce5bcfc1..da8ecf5a7e 100644 --- a/code/game/say.dm +++ b/code/game/say.dm @@ -99,9 +99,9 @@ GLOBAL_LIST_INIT(freqtospan, list( /atom/movable/proc/say_emphasis(input) var/static/regex/italics = regex("\\|(?=\\S)(.*?)(?=\\S)\\|", "g") input = replacetext_char(input, italics, "$1") - var/static/regex/bold = regex("\+(?=\S)(.*?)(?=\S)\+", "g") + var/static/regex/bold = regex("\\+(?=\\S)(.*?)(?=\\S)\\+", "g") input = replacetext_char(input, bold, "$1") - var/static/regex/underline = regex("_+(?=\S)(.*?)(?=\S)\_", "g") + var/static/regex/underline = regex("_(?=\\S)(.*?)(?=\\S)_", "g") input = replacetext_char(input, underline, "$1") return input