From d3ff9a4da8499f202bb03fdd81a57bf86a52d8b7 Mon Sep 17 00:00:00 2001 From: Morfent Date: Wed, 18 Feb 2015 07:51:46 -0400 Subject: [PATCH] SyntaxError handling when adding regex highlights If the user attempts to add any regular expressions that throw a syntax error on RegExp object construction, they can see the first pattern that throws an error along with its error message without breaking their entire highlight list. --- js/client-chat.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/js/client-chat.js b/js/client-chat.js index 5999f3d0b..0596c04c5 100644 --- a/js/client-chat.js +++ b/js/client-chat.js @@ -570,8 +570,16 @@ switch (targets[0]) { case 'add': for (var i=1, len=targets.length; i