Skip to content

Commit aa71e67

Browse files
committed
Merge pull request reworkcss#7 from rstacruz/patch-3
Support escaped quotes in quoted strings
2 parents 42da960 + e40e7b1 commit aa71e67

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)