Skip to content

Commit d9fb2af

Browse files
committed
Merge pull request reworkcss#5 from rstacruz/patch-1
Support semicolons in quoted strings in declarations
2 parents 20420b7 + 5b70c21 commit d9fb2af

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
@@ -112,7 +112,7 @@ module.exports = function(css){
112112
if (!match(/^:\s*/)) return;
113113

114114
// val
115-
var val = match(/^([^};]+)\s*/);
115+
var val = match(/^((?:'[^']*'|"[^"]*"|[^};])+)\s*/);
116116
if (!val) return;
117117
val = val[0].trim();
118118

0 commit comments

Comments
 (0)