We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5c56a29 + 694023a commit 0d2d80aCopy full SHA for 0d2d80a
lib/glob.js
@@ -4,7 +4,7 @@ class Glob {
4
5
// If not a glob pattern then just match the string.
6
if (!this.glob.includes('*')) {
7
- this.regexp = new RegExp(`.*${this.glob}.*`, 'u')
+ this.regexp = new RegExp(`\\b${this.glob}\\b`, 'u')
8
return
9
}
10
this.regexptText = this.globize(this.glob)
0 commit comments