We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c7cb2bb commit ec00348Copy full SHA for ec00348
1 file changed
componentDetection.ts
@@ -154,7 +154,9 @@ export default class ComponentDetection {
154
packages.forEach((pkg: ComponentDetectionPackage) => {
155
pkg.locationsFoundAt.forEach((location: any) => {
156
// Use the normalized path (remove leading slash if present)
157
- const normalizedLocation = location.startsWith('/') ? location.substring(1) : location;
+ let normalizedLocation = location.startsWith('/') ? location.substring(1) : location;
158
+ // Unescape the path, as upstream ComponentDetection emits locationsFoundAt in URL-encoded form
159
+ normalizedLocation = decodeURIComponent(normalizedLocation);
160
161
if (!manifests.find((manifest: Manifest) => manifest.name == normalizedLocation)) {
162
const manifest = new Manifest(normalizedLocation, normalizedLocation);
0 commit comments