Skip to content

Commit faa23ad

Browse files
committed
fix complex media query support
1 parent 7655bc0 commit faa23ad

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

lib/lexer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ var pseudos = [
3737
*/
3838

3939
pseudos = pseudos.join('|');
40-
var propre = new RegExp('^ *([^:\n]+):(?!' + pseudos + ') *([^\n]*)');
40+
var propre = new RegExp('^ *([-\\w]+):(?!' + pseudos + ') *([^\n]*)');
4141

4242
/**
4343
* Scan the given `str` returning tokens.

test/cases/media.complex.out.css

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
@media only screen and (min-device-width: 320px) and (max-device-width: 480px) {
2+
body {
3+
width: 480px;
4+
height: 500px;
5+
}
6+
}

0 commit comments

Comments
 (0)