Skip to content

Commit fbfe170

Browse files
committed
Merge pull request #76 from DenVdmj/patch-1
Fix for parsing quoted values in selector
2 parents dc8ae04 + ba83311 commit fbfe170

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/parse/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ module.exports = function(css, options){
198198
* http://ostermiller.org/findcomment.html */
199199
return trim(m[0])
200200
.replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g, '')
201-
.replace(/(?:"[^"]*"|'[^']*')/g, function(m) {
201+
.replace(/(?:"(?:\\"|[^"])*")|(?:'(?:\\'|[^'])*')/g, function(m) {
202202
return m.replace(/,/g, '\u200C');
203203
})
204204
.split(/\s*(?![^(]*\)),\s*/)

0 commit comments

Comments
 (0)