fixed regex again

This commit is contained in:
Nicolas Graf 2018-03-01 13:05:16 +01:00
parent 7c5c230686
commit 871647fcbc

View file

@ -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,'');
}
}