File tree 3 files changed +16
-3
lines changed
3 files changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ derive_more = "0.99.16"
12
12
url = " 2.2.2"
13
13
regex = " 1.4.3"
14
14
serde = { version = " 1.0.127" , features = [" derive" ] }
15
- unic-ucd-ident = { version = " 0.9.0 " , features = [ " id " ] }
15
+ unicode-id-start = " 1 "
16
16
17
17
[dev-dependencies ]
18
18
serde_json = " 1.0.66"
Original file line number Diff line number Diff line change @@ -833,4 +833,17 @@ mod tests {
833
833
} )
834
834
. unwrap ( ) ;
835
835
}
836
+
837
+ #[ test]
838
+ fn issue54 ( ) {
839
+ let pattern = <UrlPattern >:: parse ( UrlPatternInit {
840
+ pathname : Some ( "/:thereisa\u{30FB} middledot." . to_owned ( ) ) ,
841
+ ..Default :: default ( )
842
+ } )
843
+ . unwrap ( ) ;
844
+ assert_eq ! (
845
+ pattern. pathname. group_name_list,
846
+ vec![ "thereisa\u{30FB} middledot" ]
847
+ ) ;
848
+ }
836
849
}
Original file line number Diff line number Diff line change @@ -321,9 +321,9 @@ pub fn tokenize(
321
321
#[ inline]
322
322
pub ( crate ) fn is_valid_name_codepoint ( code_point : char , first : bool ) -> bool {
323
323
if first {
324
- unic_ucd_ident :: is_id_start ( code_point) || matches ! ( code_point, '$' | '_' )
324
+ unicode_id_start :: is_id_start ( code_point) || matches ! ( code_point, '$' | '_' )
325
325
} else {
326
- unic_ucd_ident :: is_id_continue ( code_point)
326
+ unicode_id_start :: is_id_continue ( code_point)
327
327
|| matches ! ( code_point, '$' | '\u{200C}' | '\u{200D}' )
328
328
}
329
329
}
You can’t perform that action at this time.
0 commit comments