fmt all
This commit is contained in:
@@ -13,7 +13,9 @@ use axum_extra::extract::{CookieJar, cookie::Cookie};
|
||||
/// dashes and apostrophes — no spaces. Mirrors the frontend
|
||||
/// `/^[A-Za-z0-9'-]{0,67}$/` used by the keys-page popups.
|
||||
fn valid_charset(s: &str) -> bool {
|
||||
s.len() <= 67 && s.chars().all(|c| c.is_ascii_alphanumeric() || c == '-' || c == '\'')
|
||||
s.len() <= 67
|
||||
&& s.chars()
|
||||
.all(|c| c.is_ascii_alphanumeric() || c == '-' || c == '\'')
|
||||
}
|
||||
|
||||
use axum::{
|
||||
|
||||
Reference in New Issue
Block a user