From c846a7422e405b151c57f3fa77bd32bd856e78b6 Mon Sep 17 00:00:00 2001 From: "Rico Sta. Cruz" Date: Sun, 2 Sep 2012 01:40:22 +0800 Subject: [PATCH] Consume excess semicolons Handles cases like `div { color: blue;;; padding: 0; }` --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 4aa8cb8..ef8abe4 100644 --- a/index.js +++ b/index.js @@ -117,7 +117,7 @@ module.exports = function(css){ val = val[0].trim(); // ; - match(/^;\s*/); + match(/^[;\s]*/); return { property: prop, value: val }; }