mirror of
https://github.com/citizenfx/cfx-server-data.git
synced 2025-12-12 06:14:09 +01:00
Renamed styles
This commit is contained in:
@@ -29,7 +29,7 @@ Vue.component('message', {
|
||||
return `<span style="color: rgb(${this.color[0]}, ${this.color[1]}, ${this.color[2]})">${str}</span>`
|
||||
},
|
||||
colorize(str) {
|
||||
const s = "<span>" + (str.replace(/\^([0-9]+)([busr])|\^([0-9]+)|\^([busr])/g,
|
||||
const s = "<span>" + (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} ` : '';
|
||||
|
||||
Reference in New Issue
Block a user