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"
88license = " MIT"
99
1010[dependencies ]
11- url = " 2.4.1 "
11+ url = " 2.5.6 "
1212regex = " 1.10.5"
1313serde = { version = " 1.0.127" , features = [" derive" ] }
1414unic-ucd-ident = { version = " 0.9.0" , features = [" id" ] }
Original file line number Diff line number Diff line change 24742474 }
24752475 },
24762476 {
2477- "skip" : " likely a bug in rust-url" ,
24782477 "pattern" : [{ "hostname" : " bad\\ :hostname" }],
24792478 "expected_obj" : " error"
24802479 },
Original file line number Diff line number Diff line change @@ -160,6 +160,14 @@ pub fn tokenize(
160160 ) ;
161161 continue ;
162162 }
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+ }
163171 if tokenizer. code_point == Some ( '{' ) {
164172 tokenizer. add_token_with_default_pos_and_len ( TokenType :: Open ) ;
165173 continue ;
You can’t perform that action at this time.
0 commit comments