File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ repository = "https://github.com/denoland/rust-urlpattern"
8
8
license = " MIT"
9
9
10
10
[dependencies ]
11
- url = " 2.4.1 "
11
+ url = " 2.5.6 "
12
12
regex = " 1.10.5"
13
13
serde = { version = " 1.0.127" , features = [" derive" ] }
14
14
unic-ucd-ident = { version = " 0.9.0" , features = [" id" ] }
Original file line number Diff line number Diff line change 2474
2474
}
2475
2475
},
2476
2476
{
2477
- "skip" : " likely a bug in rust-url" ,
2478
2477
"pattern" : [{ "hostname" : " bad\\ :hostname" }],
2479
2478
"expected_obj" : " error"
2480
2479
},
Original file line number Diff line number Diff line change @@ -160,6 +160,14 @@ pub fn tokenize(
160
160
) ;
161
161
continue ;
162
162
}
163
+ if tokenizer. code_point == Some ( '\n' )
164
+ || tokenizer. code_point == Some ( '\r' )
165
+ || tokenizer. code_point == Some ( '\t' )
166
+ {
167
+ // ignore newline, carriage return and tab
168
+ tokenizer. index = tokenizer. next_index ;
169
+ continue ;
170
+ }
163
171
if tokenizer. code_point == Some ( '{' ) {
164
172
tokenizer. add_token_with_default_pos_and_len ( TokenType :: Open ) ;
165
173
continue ;
You can’t perform that action at this time.
0 commit comments