Remove unneeded parentheses.
authorXhmikosR <xhmikosr@users.sourceforge.net>
Thu, 5 Sep 2013 10:02:39 +0000 (13:02 +0300)
committerXhmikosR <xhmikosr@users.sourceforge.net>
Thu, 5 Sep 2013 10:57:54 +0000 (13:57 +0300)
lib/properties/shorthand-notations.js

index 8dcf363..f29b2d3 100644 (file)
@@ -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');
   };