From dcca70e94ac2a7b332a7c454963747e34521eb02 Mon Sep 17 00:00:00 2001 From: kevinz000 <2003111+kevinz000@users.noreply.github.com> Date: Mon, 8 Jun 2020 06:46:19 -0700 Subject: [PATCH] fix --- code/game/say.dm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/game/say.dm b/code/game/say.dm index 4a361b2461..3cce5bcfc1 100644 --- a/code/game/say.dm +++ b/code/game/say.dm @@ -97,11 +97,11 @@ GLOBAL_LIST_INIT(freqtospan, list( // Citadel edit [spanned ? ", \"[spanned]\"" : ""]" /atom/movable/proc/say_emphasis(input) - var/static/regex/italics = regex("|(\\b.*?\\b)|", "g") + var/static/regex/italics = regex("\\|(?=\\S)(.*?)(?=\\S)\\|", "g") input = replacetext_char(input, italics, "$1") - var/static/regex/bold = regex("+(\\b.*?\\b)+", "g") + var/static/regex/bold = regex("\+(?=\S)(.*?)(?=\S)\+", "g") input = replacetext_char(input, bold, "$1") - var/static/regex/underline = regex("_(\\B.*?\\B)_", "g") + var/static/regex/underline = regex("_+(?=\S)(.*?)(?=\S)\_", "g") input = replacetext_char(input, underline, "$1") return input