-
Notifications
You must be signed in to change notification settings - Fork 53
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
[feature request (satisfies
)]: support ranges with ||
#63
Comments
||
satisfies
)]: support ranges with ||
Thanks for suggesting this. I am working on adding this to the existing I have released Example usage: |
I think I might have found a small bug in A package in the project I'm using this for has an incorrectly formatted range ( Not sure if this is a thing that should be resolved in userland or handled by the library. In my use case, I'm fetching these ranges from However, if I do something like |
Thanks for testing. This is tricky, because in semver ranges |
Ohhh yeah, that's a great point. |
It looks like they have this RegEx: which gets used here: |
I finally got around to working on this and released 6.0.0-rc.3 to address the malformed input for ranges (extra spaces). Example: Thanks for the feedback and suggestions! |
Hi, thanks for this library!
I was wondering if it'd be possible to add support for ranges that contain multiple ranges using
||
-- ie, something like:I'm currently using a workaround where I split the string and test if any of them pass
satisfies
:but I think it would be nice if it was supported out of the box. I'd be happy to open a PR if you are into this idea! Thanks again!
The text was updated successfully, but these errors were encountered: