diff --git a/lib/patternEmitter.js b/lib/patternEmitter.js
index <HASH>..<HASH> 100644
--- a/lib/patternEmitter.js
+++ b/lib/patternEmitter.js
@@ -258,20 +258,20 @@ PatternEmitter.prototype._getMatching = function(type) {
       continue;
     }
 
-    if (regex.test(type)) {
-      if (!matching) {
-        matching = this._patternEvents[pattern];
-      } else {
-        listeners = this._patternEvents[pattern];
-        if (!(listeners instanceof Array)) {
-          listeners = [listeners];
-        }
-
-        if (!(matching instanceof Array)) {
-          matching = [matching];
-        }
-        matching = matching.concat(listeners);
+    if (!regex.test(type)) continue;
+
+    if (!matching) {
+      matching = this._patternEvents[pattern];
+    } else {
+      listeners = this._patternEvents[pattern];
+      if (!(listeners instanceof Array)) {
+        listeners = [listeners];
       }
+
+      if (!(matching instanceof Array)) {
+        matching = [matching];
+      }
+      matching = matching.concat(listeners);
     }
   }
Small style fix in _getMatching