1
0
Fork 0

chore(renovate): update shell script regex for docker image detection

- modify regex pattern in custom manager to optionally match lines starting with '# renovate' comment
- improve pattern to handle newlines before variable assignment for better compatibility
This commit is contained in:
pooneyy 2026-02-06 11:00:09 +08:00
parent 5c2361485f
commit d79ff3ffb4
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -316,7 +316,7 @@
"managerFilePatterns": ["/(^|/).+\\.sh$/"],
"matchStrings": [
// : https://regexr.com/8jlns
"([\\S]+=)(?<depName>[\\S]+):(?<currentValue>[\\S]+)"
"(?:# renovate)(?:\\n+)?([\\S]+=)(?<depName>[\\S]+):(?<currentValue>[\\S]+)"
],
"datasourceTemplate": "{{#if datasource}}{{{datasource}}}{{else}}docker{{/if}}"
}