Skip to content

Commit

Permalink
#1549 - Filter entity candidates by description
Browse files Browse the repository at this point in the history
- Fix issue that no results are returned if there is whitespace before the first double-quote when filtering by label
  • Loading branch information
reckart committed Dec 9, 2019
1 parent 5a81cc8 commit 99b659d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ private List<KBHandle> getCandidates(IModel<AnnotatorState> aStateModel,
String trimmedInput = input.trim();
if (trimmedInput.length() > 2 && trimmedInput.startsWith("\"")
&& trimmedInput.endsWith("\"")) {
input = StringUtils.substring(input, 1, -1);
input = StringUtils.substring(trimmedInput, 1, -1);
labelFilter = true;
}

Expand Down

0 comments on commit 99b659d

Please sign in to comment.