glob-match icon indicating copy to clipboard operation
glob-match copied to clipboard

Pattern with globstar and star fails to match

Open oleg-vinted opened this issue 1 year ago • 3 comments

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.

oleg-vinted avatar Jun 26 '23 17:06 oleg-vinted