#glob #glob-pattern #looks

is-glob

Returns true if the given string looks like a glob pattern

1 unstable release

0.1.0 Nov 28, 2022

#2 in #looks

MIT license

6KB
142 lines

is-glob

check input string if it's a glob pattern.

Returns true/false.

use is_glob::is_glob;

assert_eq!(is_glob("*.js"), true); // true
assert_eq!(is_glob("~/abc"), false); // true

Dependencies

~2.2–3MB
~55K SLoC