-
-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect substitution with multiple * wildcards #9
Comments
Oh right, missed this. Thank you! Validation checks of the target path(s) are implemented as part of #6 – I'm still waiting on general consensus as to whether or not others feel this library should be responsible for them. Hope you found this lib somewhat helpful for your implementation :) |
Hmm, I'm not sure this is the intended resolution behaviour in the spec. Here you've quoted a step from the
However, this is incongruent with:
Disclaimer: End-of-day pseudocode reading and I could have missed something above — please correct me if so! |
I looked at this library briefly when I implemented this feature for esbuild and discovered some bugs. One of them is that it looks like this library doesn't handle
*
wildcards correctly when there are multiple wildcards:Expected output:
Observed output:
The relevant part from the spec is this one:
Other bugs I found included #7 and missing validation checks. I wasn't sure whether to also file a bug about the missing validation checks since you could argue that it's potentially not a concern of this library, although if many tools are adopting this package then it would probably make sense to put the validation checks in one place instead of replicating them in the various projects.
The text was updated successfully, but these errors were encountered: