From 7e550dd0ca9a6087bf2ee9fadf19cad1e64a8520 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=BCtjerodt=2C=20Marcel?= Date: Fri, 22 Mar 2024 10:46:56 +0100 Subject: [PATCH] Resolves #3280 - allow # in branch names --- gitbutler-app/src/virtual_branches/virtual.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitbutler-app/src/virtual_branches/virtual.rs b/gitbutler-app/src/virtual_branches/virtual.rs index de00e112a..ab3dda80c 100644 --- a/gitbutler-app/src/virtual_branches/virtual.rs +++ b/gitbutler-app/src/virtual_branches/virtual.rs @@ -174,7 +174,7 @@ impl From> 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() }