Skip to content

Commit 1c89e5d

Browse files
committed
cleaned up Glob and fixed a bug in sub org pattern detection
1 parent a70438c commit 1c89e5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/glob.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ class Glob {
44

55
// If not a glob pattern then just match the string.
66
if (!this.glob.includes('*')) {
7-
this.regexp = new RegExp(`.*${this.glob}.*`, 'u')
7+
this.regexp = new RegExp(`\\b${this.glob}\\b`, 'u')
88
return
99
}
1010
this.regexptText = this.globize(this.glob)

0 commit comments

Comments
 (0)