Skip to content

Commit a11d8b7

Browse files
authored
fix(manager/gomod): use regex helper function (renovatebot#35514)
1 parent 9d8932d commit a11d8b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/modules/manager/gomod/update.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import type { UpdateDependencyConfig } from '../types';
55

66
function getNameWithNoVersion(name: string): string {
77
// remove version suffixes like /v1 or /v2
8-
let nameNoVersion = name.replace(/\/v\d+$/, '');
8+
let nameNoVersion = name.replace(regEx(/\/v\d+$/), '');
99
// gopkg.in is a special case where the major version is added with a dot rather than a slash
1010
if (nameNoVersion.startsWith('gopkg.in')) {
1111
nameNoVersion = nameNoVersion.replace(regEx(/\.v\d+$/), '');

0 commit comments

Comments
 (0)