Skip to content

Commit c846a74

Browse files
committed
Consume excess semicolons
Handles cases like `div { color: blue;;; padding: 0; }`
1 parent 9a8f1b9 commit c846a74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ module.exports = function(css){
117117
val = val[0].trim();
118118

119119
// ;
120-
match(/^;\s*/);
120+
match(/^[;\s]*/);
121121

122122
return { property: prop, value: val };
123123
}

0 commit comments

Comments
 (0)