We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 688624d commit d2a9cb3Copy full SHA for d2a9cb3
eng/common/scripts/Verify-Links.ps1
@@ -168,7 +168,7 @@ function ProcessNpmLink([System.Uri]$linkUri) {
168
# Handle non-versioned URLs: https://www.npmjs.com/package/@azure/ai-agents -> https://registry.npmjs.org/@azure/ai-agents
169
# The regex captures the package name (which may contain a slash for scoped packages) and optionally the version
170
$urlString = $linkUri.ToString()
171
- if ($urlString -match '^https?://(?:www\.)?npmjs\.com/package/([^/]+(?:/[^/]+)?)/v/(.+)$') {
+ if ($urlString -match '^https?://(?:www\.)?npmjs\.com/package/(.+)/v/(.+)$') {
172
# Versioned URL: remove the /v/ segment but keep the version
173
$apiUrl = "https://registry.npmjs.org/$($matches[1])/$($matches[2])"
174
}
0 commit comments