File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -364,6 +364,16 @@ fn invalid_username() {
364
364
parse_eval::<ast::Sudo>("User_Alias FOO = $dollar");
365
365
}
366
366
367
+ #[test]
368
+ fn inclusive_username() {
369
+ let UserSpecifier::User(Identifier::Name(sirin)) = parse_eval::<ast::UserSpecifier>("şirin")
370
+ else {
371
+ panic!();
372
+ };
373
+
374
+ assert_eq!(sirin, "şirin");
375
+ }
376
+
367
377
#[test]
368
378
fn directive_test() {
369
379
let y = parse_eval::<Spec<UserSpecifier>>;
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ impl Token for Username {
24
24
}
25
25
26
26
fn accept(c: char) -> bool {
27
- c.is_ascii_alphanumeric () || ".-_@$".contains(c)
27
+ c.is_alphanumeric () || ".-_@$".contains(c)
28
28
}
29
29
30
30
fn accept_1st(c: char) -> bool {
You can’t perform that action at this time.
0 commit comments