summaryrefslogtreecommitdiff
path: root/std/path/_globrex.ts
diff options
context:
space:
mode:
authorNayeem Rahman <nayeemrmn99@gmail.com>2020-05-31 18:48:32 +0100
committerGitHub <noreply@github.com>2020-05-31 13:48:32 -0400
commit10573183af14b4f303909ee9394e0e72cf10b45d (patch)
tree45a2136c24d8cbb7d36218f9d1c10432bef301f8 /std/path/_globrex.ts
parent464f5bf769f23b85ecc2c99b54b639c5a71d700f (diff)
fix(std/path): Support browsers (#6003)
Diffstat (limited to 'std/path/_globrex.ts')
-rw-r--r--std/path/_globrex.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/std/path/_globrex.ts b/std/path/_globrex.ts
index 2b3af14ad..6ad297d86 100644
--- a/std/path/_globrex.ts
+++ b/std/path/_globrex.ts
@@ -1,8 +1,10 @@
// This file is ported from globrex@0.1.2
// MIT License
// Copyright (c) 2018 Terkel Gjervig Nielsen
+/** This module is browser compatible. */
+
+import { isWindows as isWin } from "./_constants.ts";
-const isWin = Deno.build.os === "windows";
const SEP = isWin ? `(?:\\\\|\\/)` : `\\/`;
const SEP_ESC = isWin ? `\\\\` : `/`;
const SEP_RAW = isWin ? `\\` : `/`;