summaryrefslogtreecommitdiff
path: root/std/node/_url.ts
diff options
context:
space:
mode:
authorBehnam Mohammadi <itten@live.com>2020-11-14 02:51:11 +0330
committerGitHub <noreply@github.com>2020-11-14 00:21:11 +0100
commita59f5eadd86e85bf662b37ec40ceb6f80cb207c4 (patch)
tree49b3ff46c3f743d4975c7eaa3d73698c006bf24c /std/node/_url.ts
parentd5661f677e9f5675fc488c4629e85a58764ec3ff (diff)
refactor(std): add std/_util/os.ts module (#8370)
This commit adds "std/_util/os.ts" module which contains common os detection logic and is browser compatible. Co-authored-by: Nayeem Rahman <nayeemrmn99@gmail.com>
Diffstat (limited to 'std/node/_url.ts')
-rw-r--r--std/node/_url.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/std/node/_url.ts b/std/node/_url.ts
index 82daa25e9..f85286df2 100644
--- a/std/node/_url.ts
+++ b/std/node/_url.ts
@@ -26,8 +26,7 @@ import {
CHAR_LOWERCASE_Z,
} from "../path/_constants.ts";
import * as path from "./path.ts";
-
-const isWindows = Deno.build.os === "windows";
+import { isWindows } from "../_util/os.ts";
const forwardSlashRegEx = /\//g;
const percentRegEx = /%/g;