Skip to content

Commit be56559

Browse files
committed
Search for spaces with 1 or more occurrences
1 parent 40b2c0b commit be56559

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/frontEnd/serverSide/controller/WordTree_Controller.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public Map<String, Object> getWordTree(List<String> reportIDList, String rootWor
4848
List<Map<String, Object>> leftList = new ArrayList<>();
4949
List<Map<String, Object>> rightList = new ArrayList<>();
5050

51-
String searchText = rootWord.replaceAll(" ", "\\\\s*");
51+
String searchText = rootWord.replaceAll(" ", "\\\\s+");
5252
// Pattern sentencePattern = Pattern.compile("([^.:]*?" + rootWord + "[^.\n]*\\.)");
5353
System.out.println("New search is: " + searchText);
5454

0 commit comments

Comments
 (0)