Skip to content

Conversation

@JustPyrrha
Copy link

Some mods start their version strings with something other than a number or a 'v' prefix such as Sodium and Simple Voice Chat (examples below) which can make the 'v' prefix applied by the update checker look a bit messy.

This simply checks if the first character of a version string isn't a number (using !Character.isDigit) and appends .nonNumeric to the translation key which is a duplicate of the previous key without the 'v' prefix. Versions starting with a number aren't changed.

Sodium before:
Screenshot_20251224_165913

Sodium after:
Screenshot_20251224_165821

Simple Voice Chat before:
Screenshot_20251224_165919

Simple Voice Chat after:
Screenshot_20251224_165831

Fabric Api before and after:
Screenshot_20251224_170728

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.

1 participant