Skip to content

fix(mq-lang): handle "v"/"V" prefix in semver_parse#1887

Merged
harehare merged 1 commit into
harehare:mainfrom
aodihis:feat/fix-semver-with-v
Jun 16, 2026
Merged

fix(mq-lang): handle "v"/"V" prefix in semver_parse#1887
harehare merged 1 commit into
harehare:mainfrom
aodihis:feat/fix-semver-with-v

Conversation

@aodihis

@aodihis aodihis commented Jun 16, 2026

Copy link
Copy Markdown
Contributor
  • Strip an optional leading v or V before parsing in semver_parse, so conventional tag formats like "v1.2.3"
  • Adds tests for lowercase/uppercase v-prefixed versions and a v-prefixed version with pre-release/build metadata.

Fixes #1869

* Strip an optional leading v or V before parsing in semver_parse,
  so conventional tag formats like "v1.2.3" (Git tags, GitHub
  releases, npm) no longer fail with a confusing to_number error.
* Reuses the existing ltrimstr builtin instead of adding new
  string-handling logic.
* Adds tests for lowercase/uppercase v-prefixed versions and a
  v-prefixed version with pre-release/build metadata.

Fixes harehare#1869
@codspeed-hq

codspeed-hq Bot commented Jun 16, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

🎉 Hooray! codspeed-rust just leveled up to 4.7.0!

A heads-up, this is a breaking change and it might affect your current performance baseline a bit. But here's the exciting part - it's packed with new, cool features and promises improved result stability 🥳!
Curious about what's new? Visit our releases page to delve into all the awesome details about this new version.

✅ 31 untouched benchmarks


Comparing aodihis:feat/fix-semver-with-v (d5a4c94) with main (252cc99)1

Open in CodSpeed

Footnotes

  1. No successful run was found on main (535f243) during the generation of this report, so 252cc99 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

@harehare

Copy link
Copy Markdown
Owner

Looks great, thanks for the contribution! Merging.

@harehare harehare merged commit e42d6e1 into harehare:main Jun 16, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

semver_parse does not handle "v" prefix (e.g. "v1.2.3")`

2 participants