Skip to content

Commit

Permalink
change regex
Browse files Browse the repository at this point in the history
  • Loading branch information
larentoun committed Apr 23, 2024
1 parent 2c10018 commit e937e04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/_globalvars/phobias.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit e937e04

Please sign in to comment.