mirror of
https://github.com/tribufu/node-gamedig
synced 2026-05-06 15:17:36 +00:00
fixed faulty regex
This commit is contained in:
parent
284a1fcf40
commit
7c5c230686
1 changed files with 2 additions and 1 deletions
|
|
@ -74,8 +74,9 @@ class Nadeo extends require('./core') {
|
|||
}
|
||||
|
||||
stripColors(str) {
|
||||
return str.replace(/\$([0-9a-f][^\$]?[^\$]?|[^\$]?)/g,'');
|
||||
return str.replace(/\$([0-9a-f][^\$][^\$]|[^\$]?[^\$]?[^\$])/g,'');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
module.exports = Nadeo;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue