Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(manager/regex)!: allow arbitrary regex groups for templates (#12296
) Allow the usage of arbitrary capture groups inside of regex manager templates and further adds refactor which this allows. BREAKING_CHANGE Only regex managers using the combination matchStringStrategy are affected of this change! Currently capture groups which are empty but still match the regex are ignored. This is no longer the case! Subsequent matchGroups will now overwrite previous ones, even if the later one is empty.
- Loading branch information
Showing
5 changed files
with
84 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
prometheus_image: "prom/prometheus" // depName gets initially set | ||
|
||
prometheus_registry: "docker.io" // depName gets initially set | ||
prometheus_repository: "prom/prometheus" // depName gets initially set | ||
prometheus_version: "v2.21.0" // currentValue get set | ||
|
||
someother_image: "" // will not be set as group value is null/empty string | ||
someother_version: "0.12.0" // overwrites currentValue as later values take precedence. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export interface ExtractionTemplate { | ||
groups: Record<string, string>; | ||
replaceString: string; | ||
} |