From 7c5c230686004c201be94d7c407dae82bf580c90 Mon Sep 17 00:00:00 2001 From: Nicolas Graf Date: Thu, 1 Mar 2018 09:34:30 +0100 Subject: [PATCH] fixed faulty regex --- protocols/nadeo.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/protocols/nadeo.js b/protocols/nadeo.js index 49a123e..dbe6661 100644 --- a/protocols/nadeo.js +++ b/protocols/nadeo.js @@ -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;