From: cmzmasek@gmail.com Date: Tue, 21 Jan 2014 23:40:58 +0000 (+0000) Subject: in progress X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=909718c34690db186df56680f8213727612d198f;p=jalview.git in progress --- diff --git a/forester/java/src/org/forester/phylogeny/PhylogenyMethods.java b/forester/java/src/org/forester/phylogeny/PhylogenyMethods.java index 6086534..45fa3ad 100644 --- a/forester/java/src/org/forester/phylogeny/PhylogenyMethods.java +++ b/forester/java/src/org/forester/phylogeny/PhylogenyMethods.java @@ -38,6 +38,8 @@ import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Set; +import java.util.regex.Matcher; +import java.util.regex.Pattern; import org.forester.io.parsers.PhylogenyParser; import org.forester.io.parsers.phyloxml.PhyloXmlDataFormatException; @@ -1709,7 +1711,7 @@ public class PhylogenyMethods { return my_s.indexOf( my_query ) >= 0; } else { - return my_s.equals( my_query ); + return Pattern.compile( "\\b" + my_query + "\\b").matcher( my_s ).find(); } }