Skip to content

Latest commit

 

History

History
12 lines (8 loc) · 197 Bytes

README.md

File metadata and controls

12 lines (8 loc) · 197 Bytes

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