From 5537afb612b104805a43dadf6f699dcf737aab42 Mon Sep 17 00:00:00 2001 From: "cmzmasek@gmail.com" Date: Wed, 22 Jan 2014 00:38:38 +0000 Subject: [PATCH] in progress --- forester/java/src/org/forester/phylogeny/PhylogenyMethods.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forester/java/src/org/forester/phylogeny/PhylogenyMethods.java b/forester/java/src/org/forester/phylogeny/PhylogenyMethods.java index 45fa3ad..f16c57b 100644 --- a/forester/java/src/org/forester/phylogeny/PhylogenyMethods.java +++ b/forester/java/src/org/forester/phylogeny/PhylogenyMethods.java @@ -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(); } } -- 1.7.10.2