glob-match
glob-match copied to clipboard
Pattern with globstar and star fails to match
assert!(glob_match("**/*.js", "a/b.c/c.js"));
assertion failed: glob_match(\"**/*.js\", \"a/b.c/c.js\")
thread 'tests::abc' panicked at 'assertion failed: glob_match(\"**/*.js\", \"a/b.c/c.js\")'
glob_match
returns false
even though it should return true
. This has something to do with the .
in b.c
part. If I remove the dot, the glob matches.