From 1f245933908fb52146df720b1b70ded5653fbe31 Mon Sep 17 00:00:00 2001 From: virtualian Date: Sun, 7 Dec 2025 18:15:25 +0000 Subject: [PATCH] Remove unnecessary URL encoding in package-validator.sh (issue #37) The npm registry accepts scoped package URLs without encoding @ to %40. Simplify fetch_package_data() URL construction. Closes #37 --- scripts/package-validator.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/package-validator.sh b/scripts/package-validator.sh index b8fe721..4e9fef6 100755 --- a/scripts/package-validator.sh +++ b/scripts/package-validator.sh @@ -155,7 +155,7 @@ levenshtein_distance() { fetch_package_data() { local pkg="$1" - local url="https://registry.npmjs.org/$(echo "$pkg" | sed 's/@/%40/g')" + local url="https://registry.npmjs.org/${pkg}" local response response=$(curl -sL "$url" 2>/dev/null)