glob icon indicating copy to clipboard operation
glob copied to clipboard

Double star path matching not working as expected

Open pjlast opened this issue 2 years ago • 1 comments

When trying to match something.java to the path **/something.java, the package returns false.

This seems to be incorrect. Every online glob match tester I've tried makes a successful match, for example: https://www.digitalocean.com/community/tools/glob?comments=true&glob=**/something.java&matches=false&tests=something.java&tests=/something.java

But I could also be misunderstanding something here. Any clarification would be appreciated!

pjlast avatar Sep 23 '22 14:09 pjlast

FYI, https://github.com/bmatcuk/doublestar works as expected.

jplewa avatar Jan 13 '23 13:01 jplewa