diff --git a/lib/Rule.js b/lib/Rule.js
index <HASH>..<HASH> 100644
--- a/lib/Rule.js
+++ b/lib/Rule.js
@@ -64,9 +64,10 @@ Rule.prototype.wrapPath = function (rule) {
     if (rule.charAt(rule.length - 1) === symbol.file) {
         rule = rule.slice(0, rule.length - 1);
     } else {
-        rule = rule.replace(/\/$/, '') + '/**/*'
+        rule = rule.replace(/\/$/, '') + '/';
     }
-    return this.wrapMatch('-' + rule);
+    const length = rule.length;
+    return path => path.length > length && path.indexOf(rule) === 0;
 };
 
 Rule.prototype.setNegation = function (negation) {
refactor(rule): update rule.wrapPath to str match.