From e937e040ceb44f61dd09dfe9ae32f772e1b0366c Mon Sep 17 00:00:00 2001 From: larentoun <31931237+larentoun@users.noreply.github.com> Date: Tue, 23 Apr 2024 17:49:42 +0300 Subject: [PATCH] change regex --- code/_globalvars/phobias.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/_globalvars/phobias.dm b/code/_globalvars/phobias.dm index ea1d939351ddb..9aaf244daa4a7 100644 --- a/code/_globalvars/phobias.dm +++ b/code/_globalvars/phobias.dm @@ -578,7 +578,7 @@ GLOBAL_LIST_INIT(phobia_species, list( var/words_match = "" for(var/word in words) words_match += "[REGEX_QUOTE(word)]|" - words_match = copytext(words_match, 1, -1) - return regex("(\\b|\\A)([words_match])('?s*)(\\b|\\|)", "ig") + words_match = copytext_char(words_match, 1, -1) // BANDASTATION EDIT + return regex("(\\b|\\A)([words_match])()", "igu") // BANDASTATION EDIT - Original: return regex("(\\b|\\A)([words_match])('?s*)(\\b|\\|)", "ig") #undef PHOBIA_FILE