fixed faulty regex

This commit is contained in:
Nicolas Graf 2018-03-01 09:34:30 +01:00
parent 284a1fcf40
commit 7c5c230686

View file

@ -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;