Version: 2.5.2 Update

This commit is contained in:
ᴋᴇʏ
2023-10-19 22:44:34 +08:00
committed by GitHub
parent 0602346249
commit 67afe1f650

View File

@@ -9,11 +9,8 @@ import burp.config.ConfigLoader;
*/ */
public class MatchTool { public class MatchTool {
// 匹配后缀
ConfigLoader configLoader = new ConfigLoader();
public boolean matchUrlSuffix(String str) { public boolean matchUrlSuffix(String str) {
Pattern pattern = new Pattern(String.format("[\\w]+[\\.](%s)", configLoader.getExcludeSuffix()), REFlags.IGNORE_CASE); Pattern pattern = new Pattern(String.format("[\\w]+[\\.](%s)", ConfigLoader.getExcludeSuffix()), REFlags.IGNORE_CASE);
jregex.Matcher matcher = pattern.matcher(str); jregex.Matcher matcher = pattern.matcher(str);
return matcher.find(); return matcher.find();
} }