Closed silverwind closed 9 months ago
A couple of things.
This follows bash spec. A double star ("globstar") must be the only thing in a path segment, otherwise any number of consecutive stars are just treated as a single star: *
. So **.js
is the same as *.js
.
Even though imports/requires and some shell commands use ./
, that's not a spec for file paths or matching with globs. There are rules in bash for how to match single dots and whether or not they match when preceding a slash vs other characters. I don't remember them precisely at the moment. However, I added support for a format function to allow users to handle cases like this. I suppose this could be accomplished by wrapping this library too.
I see, thanks. The format
example even deals with this specific case, so maybe I'll use it.
This seems like a bug: