summaryrefslogtreecommitdiff
path: root/tests/registry/jsr/@std/path/0.220.1/_common/normalize.ts
blob: 3a1a1628453f5bed48f2247f0a93f1f0af674785 (plain)
1
2
3
4
5
6
7
8
9
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// This module is browser compatible.

import { assertPath } from "./assert_path.ts";

export function assertArg(path: string) {
  assertPath(path);
  if (path.length === 0) return ".";
}