mirror of
https://github.com/gamedig/node-gamedig.git
synced 2024-11-17 17:25:19 +01:00
fixed regex again
This commit is contained in:
parent
7c5c230686
commit
871647fcbc
1 changed files with 1 additions and 1 deletions
|
@ -74,7 +74,7 @@ class Nadeo extends require('./core') {
|
|||
}
|
||||
|
||||
stripColors(str) {
|
||||
return str.replace(/\$([0-9a-f][^\$][^\$]|[^\$]?[^\$]?[^\$])/g,'');
|
||||
return str.replace(/(\$[0-9a-f|A-F]{3}|\$[a-z|A-Z]{1})/g,'');
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue