is-glob 0.1.0

Returns `true` if the given string looks like a glob pattern.
Documentation
  • Coverage
  • 0%
    0 out of 2 items documented0 out of 1 items with examples
  • Size
  • Source code size: 8.14 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.31 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 23s Average build duration of successful builds.
  • all releases: 23s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • alexzhang1030

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