Skip to content

Commit 72b73ea

Browse files
authored
Ensure that we process specifically JavaScript map files #1538 (#1541)
Signed-off-by: Jono Yang <[email protected]>
1 parent b75e8b3 commit 72b73ea

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scanpipe/pipes/d2d.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,10 @@ def _match_purldb_resources(
659659

660660
for to_resource in progress.iter(resource_iterator):
661661
resources_by_sha1[to_resource.sha1].append(to_resource)
662-
if to_resource.path.endswith(".map"):
662+
if (
663+
to_resource.path.endswith(".map")
664+
and "json" in to_resource.file_type.lower()
665+
):
663666
for js_sha1 in js.source_content_sha1_list(to_resource):
664667
resources_by_sha1[js_sha1].append(to_resource)
665668
processed_resources_count += 1

0 commit comments

Comments
 (0)