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

clearer length limit

parent ecf56912
No related branches found
No related tags found
1 merge request!119restrict identity name
Pipeline #18623 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.
Finish editing this message first!
Please register or to comment