Skip to content

Commit

Permalink
Merge branch 'master' into add_sakura
Browse files Browse the repository at this point in the history
  • Loading branch information
RuslanM authored Jan 28, 2024
2 parents e400679 + ea1d509 commit b848eab
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Binary file modified modular_ss220/food/icons/drinks.dmi
Binary file not shown.
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 b848eab

Please sign in to comment.