mirror of
https://github.com/denoland/deno.git
synced 2025-09-22 02:12:33 +00:00
11 lines
333 B
TypeScript
11 lines
333 B
TypeScript
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
|
|
import { isWindows } from "ext:deno_node/_util/os.ts";
|
|
import { primordials } from "ext:core/mod.js";
|
|
|
|
const { SafeRegExp } = primordials;
|
|
|
|
export const SEP = isWindows ? "\\" : "/";
|
|
export const SEP_PATTERN = isWindows
|
|
? new SafeRegExp("[\\\\/]+")
|
|
: new SafeRegExp("\/+");
|