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 8de3232 + 784fb19 commit 694023aCopy full SHA for 694023a
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