Browse Source

REPORT-39757 少个空格

feature/big-screen
Yyming 4 years ago
parent
commit
3559ecc777
  1. 3
      designer-realize/src/main/java/com/fr/design/mainframe/alphafine/search/manager/impl/FileSearchManager.java

3
designer-realize/src/main/java/com/fr/design/mainframe/alphafine/search/manager/impl/FileSearchManager.java

@ -109,7 +109,7 @@ public class FileSearchManager implements AlphaFineSearchProvider {
if (DesignerEnvManager.getEnvManager().getAlphaFineConfigManager().isContainTemplate()) { if (DesignerEnvManager.getEnvManager().getAlphaFineConfigManager().isContainTemplate()) {
for (FileNode node : fileNodes) { for (FileNode node : fileNodes) {
String name = node.getName().toLowerCase(); String name = node.getName().toLowerCase();
name = name.replaceAll(StringUtils.BLANK,StringUtils.EMPTY); name = name.replaceAll(StringUtils.BLANK, StringUtils.EMPTY);
if (name.contains(searchText)) { if (name.contains(searchText)) {
FileModel model = new FileModel(node.getName(), node.getEnvPath()); FileModel model = new FileModel(node.getName(), node.getEnvPath());
if (!AlphaFineHelper.getFilterResult().contains(model)) { if (!AlphaFineHelper.getFilterResult().contains(model)) {
@ -123,6 +123,7 @@ public class FileSearchManager implements AlphaFineSearchProvider {
/** /**
* 搜索模板内容 * 搜索模板内容
*
* @param searchText * @param searchText
*/ */
private void doFileContentSearch(String searchText) { private void doFileContentSearch(String searchText) {

Loading…
Cancel
Save