diff --git a/lib/glob.js b/lib/glob.js index 78a0eaaf..c8f98243 100644 --- a/lib/glob.js +++ b/lib/glob.js @@ -4,7 +4,7 @@ class Glob { // If not a glob pattern then just match the string. if (!this.glob.includes('*')) { - this.regexp = new RegExp(`.*${this.glob}.*`, 'u') + this.regexp = new RegExp(`\\b${this.glob}\\b`, 'u') return } this.regexptText = this.globize(this.glob)