Skip to content

Commit 7b568fb

Browse files
committed
Fix formatBranchName
1 parent 3a4bfe0 commit 7b568fb

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
@@ -7,7 +7,7 @@ import constants from '../../constants'
77
const { GITHUB_REF_NAME } = constants
88

99
function formatBranchName(str: string): string {
10-
return str.replace(/[-_.]+/g, '-').replace(/[-a-zA-Z0-9]+/g, '') ?? ''
10+
return str.replace(/[-_.]+/g, '-').replace(/[^-a-zA-Z0-9]+/g, '') ?? ''
1111
}
1212

1313
function getPkgNameFromPurlObj(purlObj: PackageURL): string {

0 commit comments

Comments
 (0)