We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4240678 commit 685c87fCopy full SHA for 685c87f
1 file changed
src/repo.rs
@@ -119,9 +119,17 @@ impl Repository {
119
"_",
120
);
121
while branch_name.contains("..") {
122
- // .... -> .. -> .
+ // ... -> .. -> .
123
branch_name = branch_name.replace("..", ".");
124
}
125
+ while branch_name.contains("__") {
126
+ // ___ -> __ -> _
127
+ branch_name = branch_name.replace("__", "_");
128
+ }
129
+ while branch_name.contains("--") {
130
+ // --- -> -- -> -
131
+ branch_name = branch_name.replace("--", "-");
132
133
while branch_name.contains("${") {
134
// $${{ -> $( ->
135
branch_name = branch_name.replace("${", "");
0 commit comments