Function isGlob

  • Test whether the given string is a glob.

    Parameters

    • str: string

      String to test.

    Returns boolean

    true if the given string is a glob, otherwise false

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

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