From b1c2608657512a16d05c2d02fff4f3bb28b51076 Mon Sep 17 00:00:00 2001 From: bit4woo Date: Sat, 23 Dec 2023 19:42:19 +0800 Subject: [PATCH] Update CopyJsOfThisSite.java --- src/knife/CopyJsOfThisSite.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/knife/CopyJsOfThisSite.java b/src/knife/CopyJsOfThisSite.java index dc7177c..8638cdf 100644 --- a/src/knife/CopyJsOfThisSite.java +++ b/src/knife/CopyJsOfThisSite.java @@ -104,7 +104,7 @@ public String findUrls(IHttpRequestResponse message){ if (referUrl == null || url== null || code <=0) { continue; } - if (!url.toString().toLowerCase().endsWith(".js")) { + if (!url.toString().toLowerCase().endsWith(".js") || !url.toString().toLowerCase().endsWith(".js.map")) { continue; } if (referUrl.toLowerCase().startsWith(siteBaseUrl.toLowerCase()+"/")) {