Require managed version values to start with a digit in both Dockerfile ARG and compose matchStrings. Kills the false-positive class where any *_version key with a non-version scalar (e.g. latest, stable) becomes a pypi lookup. Verified no-op on the current corpus: identical 26-capture set before/after.
"customType": "regex",
"managerFilePatterns": ["**/Dockerfile*", "**/docker-compose*.yml"],
"matchStrings": [
- "ARG\\s+(?<depName>\\w+)_version=(?<currentValue>[^\\s]+)",
- "\\s+(?<depName>\\w+)_version:\\s*(?<currentValue>[^\\s]+)"
+ "ARG\\s+(?<depName>\\w+)_version=(?<currentValue>\\d[^\\s]*)",
+ "\\s+(?<depName>\\w+)_version:\\s*(?<currentValue>\\d[^\\s]*)"
],
"datasourceTemplate": "pypi",
"depNameTemplate": "{{{replace '_' '-' depName}}}"