diff options
author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2020-05-31 18:48:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-31 13:48:32 -0400 |
commit | 10573183af14b4f303909ee9394e0e72cf10b45d (patch) | |
tree | 45a2136c24d8cbb7d36218f9d1c10432bef301f8 /std/path/separator.ts | |
parent | 464f5bf769f23b85ecc2c99b54b639c5a71d700f (diff) |
fix(std/path): Support browsers (#6003)
Diffstat (limited to 'std/path/separator.ts')
-rw-r--r-- | std/path/separator.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/std/path/separator.ts b/std/path/separator.ts index fb990b808..4b54ad438 100644 --- a/std/path/separator.ts +++ b/std/path/separator.ts @@ -1,4 +1,7 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. -const isWindows = Deno.build.os == "windows"; +/** This module is browser compatible. */ + +import { isWindows } from "./_constants.ts"; + export const SEP = isWindows ? "\\" : "/"; export const SEP_PATTERN = isWindows ? /[\\/]+/ : /\/+/; |