Skip to content

Fix parsing of Maven versions

Fabien Catteau requested to merge v3-fix-maven-parsing into v3

What does this MR do?

Fix parsing of Maven versions.

  • RELEASE is the same as FINAL.
  • Pre-release tokens made of multiple characters like alpha might be followed by anything except letters. Examples: alpha1 alpha-1 alpha.1 alpha-a
  • However, aliases made of a single character must be followed by a number. Examples: a1 b2 m3

The regular expressions have moved back to the parse function.

Discrepancies b/w this branch of semver_dialects and vrange are listed in maven.yaml. They all seem to be bugs in vrange. The code used to generated the YAML file come from Draft: Compare to vrange (!66 - closed).

What are the relevant issue numbers?

gitlab-org/gitlab#386070 (comment 1821312900)

Does this MR meet the acceptance criteria?

Edited by Fabien Catteau

Merge request reports