Support for leading zeroes in colour codes
authorJack Allnutt <m2ys4u@gmail.com>
Sat, 2 Mar 2013 08:35:46 +0000 (08:35 +0000)
committerJack Allnutt <m2ys4u@gmail.com>
Sat, 2 Mar 2013 08:35:46 +0000 (08:35 +0000)
Fix for issue #174

client/assets/dev/utils.js

index e45a9aa29164dbe1a34db098006d3bdb02594bd0..41f6b22250f71ec6a6842ec5778a177c463e1682 100644 (file)
@@ -301,7 +301,7 @@ function formatIRCMsg (msg) {
         *   @inner
         */
         colourMatch = function (str) {
-            var re = /^\x03([0-9][0-5]?)(,([0-9][0-5]?))?/;
+            var re = /^\x03([0-9][0-9]?)(,([0-9][0-9]?))?/;
             return re.exec(str);
         };
         /**