Skip to content

Commit 71e1e2e

Browse files
fix(renovate): Add href regex for npm CDN (#733)
1 parent 13113f8 commit 71e1e2e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

renovate-config.json5

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,13 +127,14 @@
127127
"packageNameTemplate": "{{depName}}/{{asset}}",
128128
"versioningTemplate": "semver",
129129
},
130-
// Versioned npm CDN scalar entries in Jekyll config files and front matter without SRI.
130+
// Versioned npm CDN href/scalar entries in Jekyll config files and front matter without SRI.
131131
{
132132
"customType": "regex",
133133
"managerFilePatterns": [
134134
"/^(?:_config(?:_[^/]+)?[.]ya?ml|_layouts/.*[.]html|[^/]+[.](?:html|md)|blog/.*[.]html|_posts/.*[.]md|docs/.*[.]md)$/",
135135
],
136136
"matchStrings": [
137+
"href:\\s*[\"']https://(?:cdn\\.jsdelivr\\.net/npm|unpkg\\.com)/(?<depName>(?:@[^@/\"'\\s]+/)?[^@/\"'\\s]+)@(?<currentValue>[^/\"'\\s?#]+)",
137138
"(?:^|\\r?\\n)[ \\t]*-[ \\t]*[\"']https://(?:cdn\\.jsdelivr\\.net/npm|unpkg\\.com)/(?<depName>(?:@[^@/\"'\\s]+/)?[^@/\"'\\s]+)@(?<currentValue>[^/\"'\\s?#]+)",
138139
],
139140
"datasourceTemplate": "npm",

0 commit comments

Comments
 (0)