Skip to content

Commit 5548025

Browse files
committed
ci(renovate): better regex
1 parent fd9b549 commit 5548025

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

renovate.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,14 +109,14 @@
109109
{
110110
"customType": "regex",
111111
"managerFilePatterns": ["/\\.sh$/", "/\\.bash$/"],
112-
"matchStrings": ["pip install (?<depName>[\\w-]+)(?:\\s|$)"],
112+
"matchStrings": ["pip install (?<depName>[A-Za-z][\\w-]*)(?:\\s|$)"],
113113
"datasourceTemplate": "pypi",
114114
"currentValueTemplate": "latest"
115115
},
116116
{
117117
"customType": "regex",
118118
"managerFilePatterns": ["/\\.sh$/", "/\\.bash$/"],
119-
"matchStrings": ["uv pip install (?<depName>[\\w-]+)(?:\\s|$)"],
119+
"matchStrings": ["uv pip install (?<depName>[A-Za-z][\\w-]*)(?:\\s|$)"],
120120
"datasourceTemplate": "pypi",
121121
"currentValueTemplate": "latest"
122122
},
@@ -146,9 +146,8 @@
146146
{
147147
"customType": "regex",
148148
"managerFilePatterns": ["/\\.py$/"],
149-
"matchStrings": ["required_packages = \\[[^\\]]*\"(?<depName>[^\"=]+)==(?<currentValue>[^\"]+)\""],
150-
"datasourceTemplate": "pypi",
151-
"currentValueTemplate": "latest"
149+
"matchStrings": ["required_packages = \\[\\s*\"(?<depName>[^\"=\\n]+)==(?<currentValue>[^\"\\n]+)\""],
150+
"datasourceTemplate": "pypi"
152151
},
153152
{
154153
"customType": "regex",

0 commit comments

Comments
 (0)