Skip to content

Commit

Permalink
fix: use g flag for regexes in replaceAll
Browse files Browse the repository at this point in the history
  • Loading branch information
risu729 committed Dec 15, 2024
1 parent c6e0cfc commit 0b47a6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/modules/manager/mise/backends.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export function createPipxToolConfig(
// If the url is not a github repo, treat the version as a git ref
if (is.undefined(repoName)) {
return {
packageName: name.replace(/^git\+/, '').replaceAll(/\.git$/, ''),
packageName: name.replace(/^git\+/g, '').replaceAll(/\.git$/g, ''),
datasource: GitRefsDatasource.id,
};
}
Expand Down

0 comments on commit 0b47a6b

Please sign in to comment.