// 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;
}

// denoCacheMetadata={"headers":{"access-control-expose-headers":"*","nel":"{\"report_to\":\"cf-nel\",\"success_fraction\":0.0,\"max_age\":604800}","content-type":"text/typescript","report-to":"{\"group\":\"cf-nel\",\"max_age\":604800,\"endpoints\":[{\"url\":\"https://a.nel.cloudflare.com/report/v4?s=Ar%2Fly9YDIEuQyg1hSF3o4y%2F46fyj8bYz65cLS1VRAAtChPWyhHOTMKaaKS2P6CgCTLl5GiQ7xF3HJJeZYsEG%2BOeJJeUCAKPUOBhI6RBQI35EXMB8xfyizl4%3D\"}]}","vary":"Origin","cross-origin-resource-policy":"cross-origin","server":"cloudflare","cf-cache-status":"HIT","cf-ray":"a223e658cdac7db6-LAX","date":"Tue, 28 Jul 2026 12:31:15 GMT","content-security-policy":"default-src 'none'; script-src 'none'; style-src 'none'; img-src 'none'; font-src 'none'; connect-src 'none'; frame-src 'none'; object-src 'none'; frame-ancestors 'none'; sandbox; form-action 'none';","cache-control":"public, max-age=31536000, immutable","x-jsr-backend":"modules","accept-ranges":"bytes","x-content-type-options":"nosniff","x-robots-tag":"noindex","content-length":"391","access-control-allow-origin":"*","alt-svc":"h3=\":443\"; ma=86400","age":"197965","set-cookie":"__cf_bm=XXvfQbnH43zc7k9pf9AMtmeyeST8qkkBnBQIvwJSjKY-1785241875.3412502-1.0.1.1-Hvg3i.EJMQBZt2agLrJi2tq7go5bxBwZvK7xXgCRwEunkKTGEVXTVU0A9NlmRXn8NQJYzV3Oundtlr7Z1shCZdw9U0mD9fT5Ku0QgT0ZOAmrjGAWHIBXAA.LAp.aIdED; HttpOnly; SameSite=None; Secure; Path=/; Domain=jsr.io; Expires=Tue, 28 Jul 2026 13:01:15 GMT","etag":"\"645f33cec02ec7bfe4abcef50d55052e\""},"url":"https://jsr.io/@std/path/1.0.0-rc.2/posix/_util.ts","time":1785241875}