We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c420a1 commit 055c827Copy full SHA for 055c827
src/sudoers/test/mod.rs
@@ -364,6 +364,11 @@ fn invalid_username() {
364
parse_eval::<ast::Sudo>("User_Alias FOO = $dollar");
365
}
366
367
+#[test]
368
+fn inclusive_username() {
369
+ parse_eval::<ast::UserSpecifier>("şirin");
370
+}
371
+
372
#[test]
373
fn directive_test() {
374
let y = parse_eval::<Spec<UserSpecifier>>;
src/sudoers/tokens.rs
@@ -24,7 +24,7 @@ impl Token for Username {
24
25
26
fn accept(c: char) -> bool {
27
- c.is_ascii_alphanumeric() || ".-_@$".contains(c)
+ c.is_alphanumeric() || ".-_@$".contains(c)
28
29
30
fn accept_1st(c: char) -> bool {
0 commit comments