matchCurrentVersion should provide the "clean" version #29909
rcdailey
started this conversation in
Suggest an Idea
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Tell us more.
In one of my package rules, I had to exclude 0.x versions like so:
Originally I tried like this:
I assumed that the current version would be the cleaned/trimmed version. Packages can use the format
v0.1.2
or0.1.2
; but whether or not the prefix is present to me seemed like a detail thatmatchCurrentVersion
shouldn't be concerned with. Maybe there's a reason for it, but my suggestion here is to provide the version consistently and (in this case) without av
prefix, if it's present, to the regex ofmatchCurrentVersion
. The second version I provided should work and thev?
part of the regex shouldn't be necessary IMO.Beta Was this translation helpful? Give feedback.
All reactions