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>
14 lines
561 B
TypeScript
14 lines
561 B
TypeScript
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
// This module is browser compatible.
|
|
|
|
import { isWindows } from "./_os.ts";
|
|
|
|
/**
|
|
* @deprecated (will be removed in 0.215.0) Use {@linkcode SEPARATOR} from {@link https://deno.land/std/path/constants.ts} instead.
|
|
*/
|
|
export const SEP: "/" | "\\" = isWindows ? "\\" : "/";
|
|
/**
|
|
* @deprecated (will be removed in 0.215.0) Use {@linkcode SEPARATOR_PATTERN} from {@link https://deno.land/std/path/constants.ts} instead.
|
|
*/
|
|
export const SEP_PATTERN: RegExp = isWindows ? /[\\/]+/ : /\/+/;
|