Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
bit4woo committed Nov 28, 2024
1 parent 296bb00 commit 7096444
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/base/FindUrlAction.java
Original file line number Diff line number Diff line change
Expand Up @@ -448,9 +448,9 @@ public static List<String> removeJsUrl(List<String> urls) {
String cleanUrl = urlItem.split("\\?")[0].split("#")[0];

// 判断是否以指定后缀结尾
if (cleanUrl.endsWith(".js") || cleanUrl.endsWith(".vue") || cleanUrl.endsWith(".scss")) {
if (cleanUrl.endsWith(".js") || cleanUrl.endsWith(".vue") || cleanUrl.endsWith(".scss") || cleanUrl.endsWith(".svg")) {
it.remove();
} else if (cleanUrl.contains("node_modules")) {
} else if (cleanUrl.contains("node_modules") || cleanUrl.contains("text/")) {
it.remove();
}
}
Expand Down
1 change: 1 addition & 0 deletions src/base/MimeTypesList.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ public static List<String> genMIMETypeListAsPathBlackList() {
if (!result.contains(item)) {
result.add(item);
}
result.add("text/");
}

// try {
Expand Down

0 comments on commit 7096444

Please # to comment.