mirror of
https://github.com/pooneyy/1Panel-Appstore.git
synced 2026-03-18 02:11:04 +08:00
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:
parent
5c2361485f
commit
d79ff3ffb4
@ -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}}"
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user