From 5214485a36424f48d68bf3d47e0f3ca4536d951b Mon Sep 17 00:00:00 2001 From: octopus_yan Date: Mon, 16 Dec 2024 13:08:30 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8C=85=E5=86=85=E5=90=8C=E6=97=B6?= =?UTF-8?q?=E6=9C=89bin=E5=92=8Ccpp=E6=96=87=E4=BB=B6=E6=97=B6=EF=BC=8C?= =?UTF-8?q?=E5=86=99=E5=85=A5=E7=BF=BB=E8=AF=91=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/cn/octopusyan/dmt/utils/PBOUtil.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/cn/octopusyan/dmt/utils/PBOUtil.java b/src/main/java/cn/octopusyan/dmt/utils/PBOUtil.java index ff9a2fb..2cfc780 100644 --- a/src/main/java/cn/octopusyan/dmt/utils/PBOUtil.java +++ b/src/main/java/cn/octopusyan/dmt/utils/PBOUtil.java @@ -146,6 +146,10 @@ public class PBOUtil { return wordItems; List files = new ArrayList<>(FileUtils.listFiles(file, FILE_NAME_LIST, true)); + List names = files.stream().map(File::getName).toList(); + if(names.contains("config.bin") && names.contains("config.cpp")) { + files = files.stream().filter(item -> "config.cpp".equals(item.getName())).toList(); + } for (File item : files) { wordItems.addAll(findWordByFile(item)); }