Test whether the given string is a glob.
String to test.
true if the given string is a glob, otherwise false
true
false
import { isGlob } from "@std/path/is-glob";import { assert } from "@std/assert";assert(!isGlob("foo/bar/../baz"));assert(isGlob("foo/*ar/../baz")); Copy
import { isGlob } from "@std/path/is-glob";import { assert } from "@std/assert";assert(!isGlob("foo/bar/../baz"));assert(isGlob("foo/*ar/../baz"));
Test whether the given string is a glob.