mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-19 23:52:05 +03:00
Merge pull request #3284 from FaithfulDev/master
Allow "#" in branch names #3280
This commit is contained in:
commit
47f1ea06a1
@ -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()
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user