We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d8932d commit a11d8b7Copy full SHA for a11d8b7
lib/modules/manager/gomod/update.ts
@@ -5,7 +5,7 @@ import type { UpdateDependencyConfig } from '../types';
5
6
function getNameWithNoVersion(name: string): string {
7
// remove version suffixes like /v1 or /v2
8
- let nameNoVersion = name.replace(/\/v\d+$/, '');
+ let nameNoVersion = name.replace(regEx(/\/v\d+$/), '');
9
// gopkg.in is a special case where the major version is added with a dot rather than a slash
10
if (nameNoVersion.startsWith('gopkg.in')) {
11
nameNoVersion = nameNoVersion.replace(regEx(/\.v\d+$/), '');
0 commit comments