normalizeGlob
import { normalizeGlob } from "jsr:@ende/path/windows/normalize-glob";function
function normalizeGlob(glob: string, options: Pick<GlobOptions, "globstar"> = [UNSUPPORTED]): stringLike normalize(), but doesn't collapse "**/.." when globstar is true.
glob: stringThe glob pattern to normalize.
options: Pick<GlobOptions, "globstar"> = [UNSUPPORTED]The options for glob pattern.
Returns
The normalized glob pattern.
Example: Usage
import { normalizeGlob } from "@ende/path/windows/normalize-glob";
import { assertEquals } from "@ende/assert";
const normalized = normalizeGlob("**\\foo\\..\\bar", { globstar: true });
assertEquals(normalized, "**\\bar");