From 216da6fdab44a62a5674f64833d7a25d42d7ccd7 Mon Sep 17 00:00:00 2001 From: Kasper Vaessen Date: Tue, 11 Oct 2016 17:16:20 +0300 Subject: [PATCH] Nick list colors now also work without background color --- js/models.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/models.js b/js/models.js index af96fd9..d4d0695 100644 --- a/js/models.js +++ b/js/models.js @@ -401,13 +401,13 @@ models.service('models', ['$rootScope', '$filter', 'bufferResume', function($roo 'coa-' + colorName ]; } else { - if (color.match(/^[a-zA-Z]+[:$]/)) { + if (color.match(/^[a-zA-Z]+(:|$)/)) { // WeeChat color name (foreground) var cwfcolor = color.match(/^[a-zA-Z]+/)[0]; colorClasses = [ 'cwf-' + cwfcolor ]; - } else if (color.match(/^[0-9]+[:$]/)) { + } else if (color.match(/^[0-9]+(:|$)/)) { // extended color (foreground) var cefcolor = color.match(/^[0-9]+/)[0]; colorClasses = [