mirror of
https://github.com/denoland/std.git
synced 2024-11-21 20:50:22 +00:00
18d6a0ee30
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
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 ? /[\\/]+/ : /\/+/;
|