diff options
Diffstat (limited to 'std/path')
-rw-r--r-- | std/path/glob.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/std/path/glob.ts b/std/path/glob.ts index c7d23b344..5288efda9 100644 --- a/std/path/glob.ts +++ b/std/path/glob.ts @@ -91,7 +91,7 @@ export function normalizeGlob( glob: string, { globstar = false }: GlobOptions = {} ): string { - if (!!glob.match(/\0/g)) { + if (glob.match(/\0/g)) { throw new Error(`Glob contains invalid characters: "${glob}"`); } if (!globstar) { |