Skip to content

Commit

Permalink
Add plus sign to item id valid chars regexp (#534)
Browse files Browse the repository at this point in the history
Signed-off-by: Sergio Castaño Arteaga <[email protected]>
  • Loading branch information
tegioz authored Mar 19, 2024
1 parent 9d9265f commit 82b6e11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/build/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -676,11 +676,11 @@ pub(crate) struct Repository {
}

lazy_static! {
static ref VALID_CHARS: Regex = Regex::new(r"[a-z0-9\-\ ]").expect("exprs in VALID_CHARS to be valid");
static ref VALID_CHARS: Regex = Regex::new(r"[a-z0-9\-\ \+]").expect("exprs in VALID_CHARS to be valid");
static ref MULTIPLE_HYPHENS: Regex = Regex::new(r"-{2,}").expect("exprs in MULTIPLE_HYPHENS to be valid");
}

// Normalize category, subcategory and item name
/// Normalize category, subcategory and item name.
pub(crate) fn normalize_name(value: &str) -> String {
let mut normalized_name = value
.to_lowercase()
Expand Down

0 comments on commit 82b6e11

Please sign in to comment.