Merge pull request #3284 from FaithfulDev/master

Allow "#" in branch names #3280
This commit is contained in:
Kiril Videlov 2024-03-22 11:48:29 +01:00 committed by GitHub
commit 47f1ea06a1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -174,7 +174,7 @@ impl From<git::Signature<'_>> for Author {
}
pub fn normalize_branch_name(name: &str) -> String {
let pattern = Regex::new("[^A-Za-z0-9_/.]+").unwrap();
let pattern = Regex::new("[^A-Za-z0-9_/.#]+").unwrap();
pattern.replace_all(name, "-").to_string()
}