From a2127d40ee3fc4d86d3e404cbf276aa5234d6625 Mon Sep 17 00:00:00 2001 From: Cory Chaplin Date: Sun, 18 Jan 2015 23:46:54 +0100 Subject: [PATCH] Fix ident bug in text themes --- client/src/helpers/utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/helpers/utils.js b/client/src/helpers/utils.js index 1aae381..4e4c00f 100644 --- a/client/src/helpers/utils.js +++ b/client/src/helpers/utils.js @@ -219,7 +219,7 @@ function hsl2rgb(h, s, l) { */ function formatToIrcMsg(message) { // Format any colour codes (eg. $c4) - message = message.replace(/%C(\d)/ig, function(match, colour_number) { + message = message.replace(/%C(\d)/g, function(match, colour_number) { return String.fromCharCode(3) + colour_number.toString(); }); @@ -229,7 +229,7 @@ function formatToIrcMsg(message) { U: '\x1F', // Underline O: '\x0F' // Out / Clear formatting }; - message = message.replace(/%([BIUO])/ig, function(match, format_code) { + message = message.replace(/%([BIUO])/g, function(match, format_code) { if (typeof formatters[format_code.toUpperCase()] !== 'undefined') return formatters[format_code.toUpperCase()]; }); -- 2.25.1