Merge pull request #14140 from silicons/tgui_fix

fixes chat highlighting not working (literally) half the time
This commit is contained in:
Lin
2021-02-13 23:30:14 -06:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -176,7 +176,7 @@ class ChatRenderer {
this.highlightColor = null;
return;
}
const allowedRegex = /^[a-z0-9_\-\s]+$/ig;
const allowedRegex = /^[a-z0-9_\-\s]+$/i; // citadel update - ig changed to i for flags, to fix issues with highlighting only working for every other word.
const lines = String(text)
.split(',')
.map(str => str.trim())

File diff suppressed because one or more lines are too long