Skip to content
Snippets Groups Projects
Commit 5027745e authored by Hugo Trentesaux's avatar Hugo Trentesaux
Browse files

clearer length limit

parent bb12ac37
No related branches found
No related tags found
No related merge requests found
Pipeline #18489 waiting for manual action
......@@ -38,11 +38,11 @@ mod tests {
assert!(validate_idty_name(b"B0b"));
assert!(validate_idty_name(b"lorem_ipsum-dolor-sit_amet"));
assert!(validate_idty_name(
b"1_______________________________________42"
b"1_______10________20________30________40_-"
));
// --- disallow
assert!(!validate_idty_name(
b"1________________________________________43"
b"1_______10________20________30________40_-_"
));
assert!(!validate_idty_name(b"with space"));
assert!(!validate_idty_name("non-ascii🌵".as_bytes()));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment