Skip to content

Commit

Permalink
change regex to get exact match.
Browse files Browse the repository at this point in the history
  • Loading branch information
zachcp committed Oct 30, 2017
1 parent 86517f9 commit 9993f57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inst/htmlwidgets/phylocanvas.js
Expand Up @@ -39,7 +39,7 @@ HTMLWidgets.widget({
// apply node styles after the tree is loaded
if (x.nodestyles !== null) {
Object.keys(x.nodestyles).forEach(function(key){
var leaf = tree.findLeaves(key)[0];
var leaf = tree.findLeaves("^" + key + "$")[0];
leaf.setDisplay( x.nodestyles[key] );
leaf.highlighted = x.nodestyles[key].highlighted;
});
Expand Down

0 comments on commit 9993f57

Please sign in to comment.