put the correct node name in the lookup

This commit is contained in:
millmanorama 2017-06-22 11:47:24 +02:00
parent b6867de877
commit 1d6e491a2a

View File

@ -764,7 +764,7 @@ public class KeywordHits implements AutopsyVisitableItem {
private final String instance; private final String instance;
private RegExpInstanceNode(String setName, String keyword, String instance) { private RegExpInstanceNode(String setName, String keyword, String instance) {
super(Children.create(new HitsFactory(setName, keyword, instance), true), Lookups.singleton(keyword)); super(Children.create(new HitsFactory(setName, keyword, instance), true), Lookups.singleton(instance));
super.setName(instance); //the instance represents the name of the keyword hit at this point as the keyword is the regex super.setName(instance); //the instance represents the name of the keyword hit at this point as the keyword is the regex
this.setName = setName; this.setName = setName;
this.keyword = keyword; this.keyword = keyword;