Skip to content

Commit

Permalink
fix(build): Replace all spaces in font family when deriving project id
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed May 14, 2021
1 parent 9dc2fc2 commit da4fa72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ impl error::Error for Error {
pub fn pname(input: &str) -> String {
let seps = Regex::new(r"[-_]").unwrap();
let spaces = Regex::new(r" ").unwrap();
let title = seps.replace(input, " ").to_title_case();
spaces.replace(&title, "").to_string()
let title = seps.replace_all(input, " ").to_title_case();
spaces.replace_all(&title, "").to_string()
}

/// Get repository object
Expand Down

0 comments on commit da4fa72

Please sign in to comment.