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

feat: support allowedVersions regular expressions #5979

Merged
merged 4 commits into from
Apr 15, 2020

Conversation

rarkins
Copy link
Collaborator

@rarkins rarkins commented Apr 15, 2020

Adds support for regular expressions within the allowedVersions field.

Closes #5537

@rarkins
Copy link
Collaborator Author

rarkins commented Apr 15, 2020

@hisener
Copy link
Contributor

hisener commented Apr 15, 2020

Nice!

Does negative lookahead (?!) also work? If so maybe ignoredVersions is not required at all.

@rarkins
Copy link
Collaborator Author

rarkins commented Apr 15, 2020

Does negative lookahead (?!) also work?

Doesn't seem to be: google/re2#156

@hisener
Copy link
Contributor

hisener commented Apr 15, 2020

😞 In that case, will you close #5537 or leave it open?

Closes #5537

👀

@rarkins
Copy link
Collaborator Author

rarkins commented Apr 15, 2020

I'm working on adding a negation option now before merging

@rarkins
Copy link
Collaborator Author

rarkins commented Apr 15, 2020

@hisener check out the latest syntax

@rarkins rarkins merged commit 4104ba0 into master Apr 15, 2020
@rarkins rarkins deleted the feat/5537-allowed-versions-regex branch April 15, 2020 20:07
@hisener
Copy link
Contributor

hisener commented Apr 15, 2020

Feels a bit hacky but I don't know. 🤷‍♂️ Thanks for picking this up!

@renovate-release
Copy link
Collaborator

🎉 This PR is included in version 19.210.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

Support regex allowing or ignoring of versions
4 participants