From 43f0792dc34373f42dde933b32fa77e5741639bd Mon Sep 17 00:00:00 2001 From: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com> Date: Sun, 31 May 2026 00:18:02 -0400 Subject: [PATCH] fix(renovate): Add href regex for npm CDN Update renovate-config.json5 to better detect versioned npm CDN references in Jekyll files and front matter. The change tweaks the comment for clarity and adds a new match regex that captures href-style URLs pointing to jsdelivr or unpkg (capturing depName and currentValue) so Renovate can update those CDN hrefs in _config, layouts, posts, docs, and other HTML/MD files. The existing list-entry regex is kept and the datasource remains npm. --- renovate-config.json5 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/renovate-config.json5 b/renovate-config.json5 index c1b2ebf7..a0a6c604 100644 --- a/renovate-config.json5 +++ b/renovate-config.json5 @@ -127,13 +127,14 @@ "packageNameTemplate": "{{depName}}/{{asset}}", "versioningTemplate": "semver", }, - // Versioned npm CDN scalar entries in Jekyll config files and front matter without SRI. + // Versioned npm CDN href/scalar entries in Jekyll config files and front matter without SRI. { "customType": "regex", "managerFilePatterns": [ "/^(?:_config(?:_[^/]+)?[.]ya?ml|_layouts/.*[.]html|[^/]+[.](?:html|md)|blog/.*[.]html|_posts/.*[.]md|docs/.*[.]md)$/", ], "matchStrings": [ + "href:\\s*[\"']https://(?:cdn\\.jsdelivr\\.net/npm|unpkg\\.com)/(?(?:@[^@/\"'\\s]+/)?[^@/\"'\\s]+)@(?[^/\"'\\s?#]+)", "(?:^|\\r?\\n)[ \\t]*-[ \\t]*[\"']https://(?:cdn\\.jsdelivr\\.net/npm|unpkg\\.com)/(?(?:@[^@/\"'\\s]+/)?[^@/\"'\\s]+)@(?[^/\"'\\s?#]+)", ], "datasourceTemplate": "npm",