diff --git a/resources/[system]/chat/html/Message.js b/resources/[system]/chat/html/Message.js index f1a72a1..d577cb9 100644 --- a/resources/[system]/chat/html/Message.js +++ b/resources/[system]/chat/html/Message.js @@ -29,7 +29,7 @@ Vue.component('message', { return `${str}` }, colorize(str) { - const s = "" + (str.replace(/\^([0-9]+)([busr])|\^([0-9]+)|\^([busr])/g, + const s = "" + (str.replace(/\^([0-9]+)([\*\_\~r])|\^([0-9]+)|\^([\*\_\~r])/g, (match, color1, style1, color2, style2) => { const color = (color1 || color2) ? `color-${color1 || color2} ` : ''; const style = (style1 || style2) ? `style-${style1 || style2} ` : ''; diff --git a/resources/[system]/chat/html/index.css b/resources/[system]/chat/html/index.css index b7ea222..6e13ba0 100644 --- a/resources/[system]/chat/html/index.css +++ b/resources/[system]/chat/html/index.css @@ -8,9 +8,9 @@ .color-8{color: #cc0000;} .color-9{color: #cc0068;} -.style-b{font-weight: bold;} -.style-u{text-decoration: underline;} -.style-s{text-decoration: line-through;} +.style-\*{font-weight: bold;} +.style-\_{text-decoration: underline;} +.style-\~{text-decoration: line-through;} .style-r { text-decoration: none; font-weight: normal;