You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
A word starting with a stability letter is read as a pre-release (-arm64 is alpha) #153
Version reads a stability keyword from the start of a word in the suffix even when more letters follow it, so an ordinary word is taken for a pre-release. The a of arm64 or abc reads as alpha, the b of bugfix or build as beta, ga as alpha.
Such a version gets a stability it does not have: it is filtered out by the default stable constraint, matches @alpha/@beta constraints it should not, and sorts by the wrong stability.
Expected: letters that run together form one word and are read to its end. A word is a stability keyword only when the whole word is one (alpha, a, beta, b, rc, dev…), optionally followed by digits (a1, beta2, rc.1). arm64, abc, bugfix, build, ga are not.
The cause is Version::preReleaseFromSuffix(): its keyword regex has no word boundary after the keyword (PreRelease::keywordPattern() followed by optional digits).
Activity
feat(version): match constraints with our own version ordering (#155)
feat(version): match constraints with DLoad's own version ordering (#155
feat(version): match constraints with DLoad's own version ordering (#155