diff options
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 ? /[\\/]+/ : /\/+/; |