Skip to content

Conversation

@atimonin
Copy link

@atimonin atimonin commented Nov 20, 2025

Updater lib/updaters/types/gradle.js has too narrow regex for version: /^version\s+=\s+['"]([\d.]+)['"]/m, it handles only version like x.y.z while prerelease looks like x.y.z-pre.a (where x,y,z,a are numbers).
Change to /^version\s*=\s*['"]([\d.]+.*)['"]/m

@TimothyJones
Copy link
Member

Awesome, thanks for this! Would you be able to add a test too, to stop this recurring if we ever move away from the regex?

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.

2 participants