File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -154,7 +154,9 @@ export default class ComponentDetection {
154154 packages . forEach ( ( pkg : ComponentDetectionPackage ) => {
155155 pkg . locationsFoundAt . forEach ( ( location : any ) => {
156156 // Use the normalized path (remove leading slash if present)
157- const normalizedLocation = location . startsWith ( '/' ) ? location . substring ( 1 ) : location ;
157+ 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 ) ;
158160
159161 if ( ! manifests . find ( ( manifest : Manifest ) => manifest . name == normalizedLocation ) ) {
160162 const manifest = new Manifest ( normalizedLocation , normalizedLocation ) ;
You can’t perform that action at this time.
0 commit comments