feature: find matches names on underscore-delimited components

This commit is contained in:
BigEd 2010-12-19 18:31:10 +00:00
parent 27fb1d539e
commit 6db8836c5c
1 changed files with 14 additions and 0 deletions

View File

@ -346,6 +346,20 @@ function hiliteNodeList(){
transistors[name].bb[0],transistors[name].bb[2],
transistors[name].bb[1],transistors[name].bb[3]
]);
} else {
// allow match of underscore-delimited components, so
// SUMS and dpc17 both match the node dpc17_SUMS
for(var i in nodenames){
re=new RegExp("(^" + name + "_|_" + name + "$)");
if (re.test(i)){
value = nodenames[i];
highlightThese.push(value);
report="node: " + value + ' ' + nodeName(value);
for(var s in nodes[value].segs)
seglist.push(nodes[value].segs[s]);
break;
}
}
}
}
if(highlightThese.length==0){