Skip to content

Commit

Permalink
Merge branch 'master' into translate
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Jan 27, 2024
2 parents ef0b62d + f53e8fb commit 147acdd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tgui/packages/tgui-panel/chat/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ class ChatRenderer {
const highlightWholeMessage = setting.highlightWholeMessage;
const matchWord = setting.matchWord;
const matchCase = setting.matchCase;
const allowedRegex = /^[a-z0-9_\-$/^[\s\]\\]+$/gi;
const allowedRegex = /^[a-zа-яё0-9_\-$/^[\s\]\\]+$/gi; // SS220 EDIT - CYRILLIC SUPPORT
const regexEscapeCharacters = /[!#$%^&*)(+=.<>{}[\]:;'"|~`_\-\\/]/g;
const lines = String(text)
.split(/[,|]/)
Expand Down
2 changes: 1 addition & 1 deletion tgui/packages/tgui-panel/chat/replaceInTextNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export const replaceInTextNode = (regex, words, createNode) => (node) => {
for (let word of words) {
// Capture if the word is at the beginning, end, middle,
// or by itself in a message
wordRegexStr += `^${word}\\W|\\W${word}\\W|\\W${word}$|^${word}$`;
wordRegexStr += `^${word}\\S\\w|\\S\\w${word}\\S\\w|\\S\\w${word}$|^${word}\\S\\w$`; // SS220 EDIT - CYRILLIC SUPPORT
// Make sure the last character for the expression is NOT '|'
if (++i !== words.length) {
wordRegexStr += '|';
Expand Down
Loading

0 comments on commit 147acdd

Please sign in to comment.