Skip to content
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

Version range parsing #6

Open
Mishu opened this issue Feb 16, 2017 · 1 comment
Open

Version range parsing #6

Mishu opened this issue Feb 16, 2017 · 1 comment

Comments

@Mishu
Copy link

Mishu commented Feb 16, 2017

When using something like this: [1.9.1,4) it throws and invalid version error.

dependencies: [ {id: "jQuery", version: "[1.9.1,4)"}, {id: "FontAwesome", version: "4.7.0"} ],

That version range is from bootstrap v3 nuget specification file.

@Mishu
Copy link
Author

Mishu commented Feb 16, 2017

I got it to work with this regex expression: ^(\[[0-9\,\.]+\)|\]|\(|\[[0-9\,\.]+\)|\]|\([0-9\,\.]+\]|\)|[0-9]+\.[0-9]+)$

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant