Skip to content

Commit

Permalink
fix(manager/docker): accept key-only arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
mkniewallner committed Sep 11, 2024
1 parent 3b9c2f1 commit 83bfd81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/modules/manager/dockerfile/extract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ export function extractPackageFile(
const copyFromRegex = new RegExp(
'^[ \\t]*COPY(?:' +
escapeChar +
'[ \\t]*\\r?\\n| |\\t|#.*?\\r?\\n|--[a-z]+=[a-zA-Z0-9_.:-]+?)+--from=(?<image>\\S+)',
'[ \\t]*\\r?\\n| |\\t|#.*?\\r?\\n|--[a-z]+(?:=[a-zA-Z0-9_.:-]+?)?)+--from=(?<image>\\S+)',
'im',
); // TODO #12875 complex for re2 has too many not supported groups
const copyFromMatch = instruction.match(copyFromRegex);
Expand Down

0 comments on commit 83bfd81

Please sign in to comment.