Skip to content

Commit

Permalink
Phobia regex should not be a global expression (#5008)
Browse files Browse the repository at this point in the history
  • Loading branch information
LikeLakers2 authored Jan 22, 2025
1 parent b4df728 commit e09128c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/_globalvars/phobias.dm
Original file line number Diff line number Diff line change
Expand Up @@ -626,6 +626,6 @@ GLOBAL_LIST_INIT(phobia_species, list(
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")
return regex("(\\b|\\A)([words_match])('?s*)(\\b|\\|)", "i")

#undef PHOBIA_FILE

0 comments on commit e09128c

Please sign in to comment.