-
|
Is it semver-compatible if the version tag has a v prefix, like |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
The node package for semver confirms that it indeed handles the v prefix. Line 12 in 7e579d2 Here are some tests with it: So if the version has more than 3 tags then everything gets cut off. But it's might not be the best idea to leave it to it's devices, as the loose semver cleaning does some weird bug with this version: So yeah, it's better to transform with wud if it's not a 3 part semver, like for |
Beta Was this translation helpful? Give feedback.
-
|
I used the trick with capturing groups to transform a tag from |
Beta Was this translation helpful? Give feedback.
The node package for semver confirms that it indeed handles the v prefix.
https://www.npmjs.com/package/semver#versions
Also the parse code seems to be quite forgiving:
wud/app/tag/index.js
Line 12 in 7e579d2
Here are some tests with it:
So if the version has more than 3 tags then everything gets cut off.
But it's might not be the best idea to leave it to it's devices, as the lo…