Skip to content

Commit ca06719

Browse files
committed
Fix formatBranchName
1 parent ed1497e commit ca06719

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/commands/fix/git.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const { GITHUB_REF_NAME } = constants
1212

1313
function formatBranchName(str: string): string {
1414
return str
15-
.replace(/[\\/-_.]+/g, '-')
15+
.replace(/[-_.\\/]+/g, '-')
1616
.replace(/[^-a-zA-Z0-9]+/g, '')
1717
.replace(/^-+|-+$/g, '')
1818
}

0 commit comments

Comments
 (0)