HUPO-PSI / mzTab

mzTab Reporting MS-based Proteomics and Metabolomics Results
https://hupo-psi.github.io/mzTab
39 stars 17 forks source link

Fix regex in semantic version specification #212

Open janikkokot opened 3 months ago

janikkokot commented 3 months ago

The previous regex can't match 2.0.0-M but only 02..-M. This updated regex will correctly match and follows semver conventions as specified under semver.org. The regex here is also taken and adapted from the one specified at the bottom of the semver homepage.