You've already forked AstralRinth
forked from didirus/AstralRinth
PR 3655 regression fixes (#3664)
* chore: undo unintended updater `zip` feature drop, tweak comment * fix: correct unintended regression on version and project validation This was caused by a mistake when coalescing mostly copied and pasted `RE_URL_SAFE` regexes into one.
This commit is contained in:
committed by
GitHub
parent
be425cff6f
commit
e4f0dddf82
@@ -7,7 +7,9 @@ use validator::{ValidationErrors, ValidationErrorsKind};
|
||||
use crate::models::pats::Scopes;
|
||||
|
||||
pub static RE_URL_SAFE: LazyLock<Regex> =
|
||||
LazyLock::new(|| Regex::new(r"^[a-zA-Z0-9_-]*$").unwrap());
|
||||
LazyLock::new(|| Regex::new(r#"^[a-zA-Z0-9!@$()`.+,_"-]*$"#).unwrap());
|
||||
pub static RE_USERNAME: LazyLock<Regex> =
|
||||
LazyLock::new(|| Regex::new(r#"^[a-zA-Z0-9_-]*$"#).unwrap());
|
||||
|
||||
//TODO: In order to ensure readability, only the first error is printed, this may need to be expanded on in the future!
|
||||
pub fn validation_errors_to_string(
|
||||
|
||||
Reference in New Issue
Block a user