1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-19 05:45:09 -05:00
denoland-deno/tests/registry/jsr/@std/path/0.220.1/posix/_util.ts

11 lines
391 B
TypeScript
Raw Normal View History

// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// Copyright the Browserify authors. MIT License.
// Ported from https://github.com/browserify/path-browserify/
// This module is browser compatible.
import { CHAR_FORWARD_SLASH } from "../_common/constants.ts";
export function isPosixPathSeparator(code: number): boolean {
return code === CHAR_FORWARD_SLASH;
}