From fa4297dbbea58603b65cb863809d10d293c0df38 Mon Sep 17 00:00:00 2001 From: AnturK Date: Mon, 27 Jan 2020 08:07:41 +0100 Subject: [PATCH] Fixes hypnosis regex. --- code/datums/brain_damage/hypnosis.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/datums/brain_damage/hypnosis.dm b/code/datums/brain_damage/hypnosis.dm index edb17b57852..8c21179b03a 100644 --- a/code/datums/brain_damage/hypnosis.dm +++ b/code/datums/brain_damage/hypnosis.dm @@ -14,7 +14,7 @@ qdel(src) hypnotic_phrase = phrase try - target_phrase = new("(\\b[hypnotic_phrase]\\b)","ig") + target_phrase = new("(\\b[REGEX_QUOTE(hypnotic_phrase)]\\b)","ig") catch(var/exception/e) stack_trace("[e] on [e.file]:[e.line]") qdel(src)