mirror of
https://github.com/dani-garcia/vaultwarden.wiki.git
synced 2026-10-23 01:48:09 +03:00
Misc Updates (#7676)
* Misc Updates - Update Rust to v1.98.0 - Update all the crates and adjusted code where needed - Updated JavaScript libraries Removed jquery as this isn't needed anymore, adjusted code where needed - Updated all GitHub Actions - Fixed nightly clippy lint warnings Signed-off-by: BlackDex <black.dex@gmail.com> * Adjust email validation as suggested Signed-off-by: BlackDex <black.dex@gmail.com> --------- Signed-off-by: BlackDex <black.dex@gmail.com>
This commit is contained in:
1 parent
fdc156b247
commit
6729e83521
23 files changed
+13321
-21525
No files matched your search
+1
-4
@@ -537,10 +537,7 @@ pub fn is_valid_email(email: &str) -> bool {
|
||||
let Ok(email_url) = url::Url::parse(&format!("https://{}", email.domain())) else {
|
||||
return false;
|
||||
};
|
||||
if email_url.path().ne("/") || email_url.domain().is_none() || email_url.query().is_some() {
|
||||
return false;
|
||||
}
|
||||
true
|
||||
email_url.domain().is_some() && email_url.path() == "/" && email_url.query().is_none()
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
Reference in new issue
Block a user