8 lines
348 B
TypeScript
8 lines
348 B
TypeScript
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
// This module is browser compatible.
|
|
import { isWindows } from "./_os.ts";
|
|
|
|
export const DELIMITER = isWindows ? ";" as const : ":" as const;
|
|
export const SEPARATOR = isWindows ? "\\" as const : "/" as const;
|
|
export const SEPARATOR_PATTERN = isWindows ? /[\\/]+/ : /\/+/;
|