From 851344f2ed588c0aa5db4fa66b7326900fdf9b5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Wed, 1 Jul 2020 16:04:56 +0200 Subject: upgrade: swc_ecma_visit, dprint, deno_lint (#6580) --- std/path/glob.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'std/path') 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) { -- cgit v1.2.3