File tree 2 files changed +17
-2
lines changed
2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change 2
2
3
3
module . exports = parse ;
4
4
5
- var re_name = / ^ (?: \\ .| [ \w \- \u00c0 - \uFFFF ] ) + / ,
5
+ var re_name = / ^ (?: \\ .| [ \w \- \u00b0 - \uFFFF ] ) + / ,
6
6
re_escape = / \\ ( [ \d a - f ] { 1 , 6 } \s ? | ( \s ) | .) / ig,
7
7
//modified version of https://github.com/jquery/sizzle/blob/master/src/sizzle.js#L87
8
- re_attr = / ^ \s * ( (?: \\ .| [ \w \u00c0 - \uFFFF \- ] ) + ) \s * (?: ( \S ? ) = \s * (?: ( [ ' " ] ) ( [ ^ ] * ?) \3| ( # ? (?: \\ .| [ \w \u00c0 - \uFFFF \- ] ) * ) | ) | ) \s * ( i ) ? \] / ;
8
+ re_attr = / ^ \s * ( (?: \\ .| [ \w \u00b0 - \uFFFF \- ] ) + ) \s * (?: ( \S ? ) = \s * (?: ( [ ' " ] ) ( [ ^ ] * ?) \3| ( # ? (?: \\ .| [ \w \u00b0 - \uFFFF \- ] ) * ) | ) | ) \s * ( i ) ? \] / ;
9
9
10
10
var actionTypes = {
11
11
__proto__ : null ,
Original file line number Diff line number Diff line change @@ -162,6 +162,21 @@ var tests = [
162
162
] ,
163
163
"Space after escaped space"
164
164
] ,
165
+ [
166
+ ".m™²³" ,
167
+ [
168
+ [
169
+ {
170
+ type : "attribute" ,
171
+ name : "class" ,
172
+ action : "element" ,
173
+ value : "m™²³" ,
174
+ ignoreCase : false
175
+ }
176
+ ]
177
+ ] ,
178
+ "Special charecters in selector"
179
+ ] ,
165
180
[
166
181
"\\61 " ,
167
182
[
You can’t perform that action at this time.
0 commit comments