fixed double regex issue

This commit is contained in:
Kelly Kelly 2022-11-09 14:21:59 -05:00
parent 79d61f3686
commit c68a3ad29c
2 changed files with 2 additions and 2 deletions

View File

@ -193,7 +193,7 @@ final class InlineSearcher {
while (hitMatcher.find(offset)) {
String hit = hitMatcher.group();
String hit = hitMatcher.group().toLowerCase();
/**
* No need to continue on if the the string is "" nothing to

View File

@ -574,7 +574,7 @@ final class RegexQuery implements KeywordSearchQuery {
*/
Collection<BlackboardAttribute> attributes = new ArrayList<>();
attributes.add(new BlackboardAttribute(ATTRIBUTE_TYPE.TSK_KEYWORD, MODULE_NAME, foundKeyword.getSearchTerm()));
attributes.add(new BlackboardAttribute(ATTRIBUTE_TYPE.TSK_KEYWORD, MODULE_NAME, foundKeyword.getSearchTerm().toLowerCase()));
if(!originalKW.searchTermIsWholeWord()) {
attributes.add(new BlackboardAttribute(ATTRIBUTE_TYPE.TSK_KEYWORD_REGEXP, MODULE_NAME, originalKW.getSearchTerm()));
}