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.
1 parent a70438c commit 1c89e5dCopy full SHA for 1c89e5d
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