1
0
mirror of https://github.com/elisspace/autopsy.git synced 2026-09-06 02:24:30 +00:00

Fix a keyword search bug when regex matches with some upper case chars would not be written to blackboard

This commit is contained in:
adam-m
2012-03-15 18:35:26 -04:00
parent 18b00fc294
commit 1506ecfcd0

View File

@@ -162,13 +162,14 @@ public class TermComponentQuery implements KeywordSearchQuery {
Collection<KeywordWriteResult> writeResults = new ArrayList<KeywordWriteResult>();
//get case-insensitive term matches
Map<String, Void> caseInsMatches = new HashMap<String, Void>();
//get unique term matches, all cases
Map<String, Void> matches = new HashMap<String, Void>();
for (Term term : terms) {
caseInsMatches.put(term.getTerm().toLowerCase(), null);
//caseInsMatches.put(term.getTerm().toLowerCase(), null);
matches.put(term.getTerm(), null);
}
for (String regexMatch : caseInsMatches.keySet()) {
for (String regexMatch : matches.keySet()) {
//snippet
String snippet = null;
try {