We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a9f6e4 commit 28563bfCopy full SHA for 28563bf
index.js
@@ -4,7 +4,7 @@ module.exports = parse;
4
5
var re_ws = /^\s/,
6
re_name = /^(?:\\.|[\w\-\u00c0-\uFFFF])+/,
7
- re_cleanSelector = /([^\\])\s*([>~+,]|$)\s*/g,
+ re_cleanSelector = /([^\\])\s*([><~+,]|$)\s*/g,
8
re_combinators = /^\s*[^\\]\s*[>~+,]|$\s*/g,
9
re_escape = /\\([\da-f]{1,6}\s?|(\s)|.)/ig,
10
re_comma = /^\s*,\s*/,
tests/test.js
@@ -104,6 +104,25 @@ var tests = [
104
],
105
'sibling'
106
107
+ [
108
+ 'p < div',
109
110
111
+ {
112
+ 'type': 'tag',
113
+ 'name': 'p'
114
+ },
115
116
+ 'type': 'parent'
117
118
119
120
+ 'name': 'div'
121
+ }
122
+ ]
123
+ ],
124
+ 'parent'
125
126
127
128
//Escaped whitespace
0 commit comments