File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 2
2
3
3
var h = / ^ [ 0 - 9 a - f A - F ] $ / ,
4
4
nonascii = / ^ [ \u0080 - \uFFFF ] $ / ,
5
- nl = / \n | \r \n | \r | \f / ;
5
+ nl = / \n | \r \n | \r | \f / ,
6
+ whitespace = / \u0009 | \u000a | \u000c | \u000d | \u0020 / ;
6
7
7
8
//-----------------------------------------------------------------------------
8
9
// Helper functions
@@ -18,7 +19,7 @@ function isDigit(c){
18
19
}
19
20
20
21
function isWhitespace ( c ) {
21
- return c !== null && / \s / . test ( c ) ;
22
+ return c !== null && whitespace . test ( c ) ;
22
23
}
23
24
24
25
function isNewLine ( c ) {
Original file line number Diff line number Diff line change 61
61
" " : [ CSSTokens . S ] ,
62
62
"\n" : [ CSSTokens . S ] ,
63
63
"\n \t" : [ CSSTokens . S ] ,
64
- "\f \n" : [ CSSTokens . S ]
64
+ "\f \n" : [ CSSTokens . S ] ,
65
+ // Not legal whitespace (PR#16)
66
+ "\v\u00A0\u1680" : [ CSSTokens . CHAR , CSSTokens . IDENT ]
65
67
}
66
68
} ) ) ;
67
69
You can’t perform that action at this time.
0 commit comments