in progress
authorcmzmasek@gmail.com <cmzmasek@gmail.com@ca865154-3058-d1c3-3e42-d8f55a55bdbd>
Wed, 22 Jan 2014 00:38:38 +0000 (00:38 +0000)
committercmzmasek@gmail.com <cmzmasek@gmail.com@ca865154-3058-d1c3-3e42-d8f55a55bdbd>
Wed, 22 Jan 2014 00:38:38 +0000 (00:38 +0000)
forester/java/src/org/forester/phylogeny/PhylogenyMethods.java

index 45fa3ad..f16c57b 100644 (file)
@@ -1711,7 +1711,7 @@ public class PhylogenyMethods {
             return my_s.indexOf( my_query ) >= 0;
         }
         else {
-            return Pattern.compile( "\\b" + my_query  + "\\b").matcher( my_s ).find();
+            return Pattern.compile( "(\\b|_)" + Pattern.quote(my_query)  + "(\\b|_)").matcher( my_s ).find();
         }
     }