Skip to content

Commit

Permalink
feat(preset): update dockerfileVersions match string (renovatebot#28963)
Browse files Browse the repository at this point in the history
  • Loading branch information
setchy authored May 10, 2024
1 parent 760291c commit 74f1833
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions lib/config/presets/internal/regex-managers.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ describe('config/presets/internal/regex-managers', () => {
# renovate: datasource=npm depName=pnpm
ENV PNPM_VERSION="7.25.1"
# renovate: datasource=npm depName=pnpm
ENV PNPM_VERSION='7.25.1'
# renovate: datasource=npm depName=yarn
ENV YARN_VERSION 3.3.1
Expand Down Expand Up @@ -172,6 +175,13 @@ describe('config/presets/internal/regex-managers', () => {
replaceString:
'# renovate: datasource=npm depName=pnpm\nENV PNPM_VERSION="7.25.1"\n',
},
{
currentValue: '7.25.1',
datasource: 'npm',
depName: 'pnpm',
replaceString:
"# renovate: datasource=npm depName=pnpm\nENV PNPM_VERSION='7.25.1'\n",
},
{
currentValue: '3.3.1',
datasource: 'npm',
Expand Down
2 changes: 1 addition & 1 deletion lib/config/presets/internal/regex-managers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const presets: Record<string, Preset> = {
'(^|/)([Dd]ocker|[Cc]ontainer)file[^/]*$',
],
matchStrings: [
'# renovate: datasource=(?<datasource>[a-z-.]+?) depName=(?<depName>[^\\s]+?)(?: (lookupName|packageName)=(?<packageName>[^\\s]+?))?(?: versioning=(?<versioning>[^\\s]+?))?(?: extractVersion=(?<extractVersion>[^\\s]+?))?(?: registryUrl=(?<registryUrl>[^\\s]+?))?\\s(?:ENV|ARG) .+?_VERSION[ =]"?(?<currentValue>.+?)"?\\s',
'# renovate: datasource=(?<datasource>[a-z-.]+?) depName=(?<depName>[^\\s]+?)(?: (lookupName|packageName)=(?<packageName>[^\\s]+?))?(?: versioning=(?<versioning>[^\\s]+?))?(?: extractVersion=(?<extractVersion>[^\\s]+?))?(?: registryUrl=(?<registryUrl>[^\\s]+?))?\\s(?:ENV|ARG)\\s+[A-Za-z0-9_]+?_VERSION[ =]["\']?(?<currentValue>.+?)["\']?\\s',
],
},
],
Expand Down

0 comments on commit 74f1833

Please sign in to comment.