Crates.io | is-glob |
lib.rs | is-glob |
version | 0.1.0 |
source | src |
created_at | 2022-11-28 01:49:35.723336 |
updated_at | 2022-11-28 01:49:35.723336 |
description | Returns `true` if the given string looks like a glob pattern. |
homepage | |
repository | |
max_upload_size | |
id | 724038 |
size | 7,076 |
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