isGlob

import { isGlob } from "jsr:@ende/path";

function

function isGlob(str: string): boolean

Test whether the given string is a glob.

str: string

String to test.

Returns

true if the given string is a glob, otherwise false

Example: Usage

import { isGlob } from "@ende/path/is-glob";
import { assert } from "@ende/assert";

assert(!isGlob("foo/bar/../baz"));
assert(isGlob("foo/*ar/../baz"));

Source