From 2c9f78176a9e9ef819be7b42da065232ad3c5e48 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Thu, 5 Sep 2013 13:02:39 +0300 Subject: [PATCH] Remove unneeded parentheses. --- lib/properties/shorthand-notations.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/properties/shorthand-notations.js b/lib/properties/shorthand-notations.js index 8dcf363b..f29b2d36 100644 --- a/lib/properties/shorthand-notations.js +++ b/lib/properties/shorthand-notations.js @@ -2,9 +2,8 @@ module.exports = function ShorthandNotations(data) { // shorthand notations var shorthandRegex = function(repeats, hasSuffix) { var pattern = '(padding|margin|border\\-width|border\\-color|border\\-style|border\\-radius):'; - for (var i = 0; i < repeats; i++) { + for (var i = 0; i < repeats; i++) pattern += '([\\d\\w\\.%#\\(\\),]+)' + (i < repeats - 1 ? ' ' : ''); - } return new RegExp(pattern + (hasSuffix ? '([;}])' : ''), 'g'); }; -- 2.34.1