diff --git a/common/src/com/thoughtworks/go/domain/Matcher.java b/common/src/com/thoughtworks/go/domain/Matcher.java
index <HASH>..<HASH> 100644
--- a/common/src/com/thoughtworks/go/domain/Matcher.java
+++ b/common/src/com/thoughtworks/go/domain/Matcher.java
@@ -82,8 +82,8 @@ public class Matcher {
 
     public boolean matches(String comment) {
         for (String escapedMatcher : escapeMatchers()) {
-            Pattern pattern = Pattern.compile(".*\\B" + escapedMatcher + "\\B.*|.*\\b" + escapedMatcher + "\\b.*");
-            if (pattern.matcher(comment).matches()) {
+            Pattern pattern = Pattern.compile("\\B" + escapedMatcher + "\\B|\\b" + escapedMatcher + "\\b");
+            if (pattern.matcher(comment).find()) {
                 return true;
             }
         }
#<I> - Reverts an earlier revert. CLA signed.

This reverts commit d<I>c<I>c<I>c<I>abb7f<I>da1b<I>ed6.