We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b40c6fe commit 1d81b76Copy full SHA for 1d81b76
1 file changed
src/updaters/go/github-imports-go.ts
@@ -7,7 +7,7 @@ export class GithubImportsGo extends DefaultUpdater {
7
}
8
9
return content.replace(
10
- /"(https:\/\/pkg.go.dev\/)?github\.com\/([^/]+)\/([^/]+)(\/v([1-9]\d*))?(\/[^"]+)?"/g,
+ /"(https:\/\/pkg.go.dev\/)?github\.com\/([^/"\n]+)\/([^/"\n]+)(\/v([1-9]\d*))?(\/[^"\n]+)?"/g,
11
(_, prefix, user, repo, ___, ____, path) =>
12
`"${prefix ?? ''}github.com/${user}/${repo}${
13
this.version.major < 2 ? '' : '/v' + this.version.major.toString()
0 commit comments