From 6db8836c5c2a3ff16d691d9d5b4fd7fbb032a751 Mon Sep 17 00:00:00 2001 From: BigEd Date: Sun, 19 Dec 2010 18:31:10 +0000 Subject: [PATCH] feature: find matches names on underscore-delimited components --- expertWires.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/expertWires.js b/expertWires.js index f141edb..5c50300 100644 --- a/expertWires.js +++ b/expertWires.js @@ -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){