-
-
Notifications
You must be signed in to change notification settings - Fork 352
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hotfix: Fix version strings pickup up unneeded input. #4282
Conversation
Create pr-labeler.yml
This has been mergable for a bit now |
Yeah we were looking at it and it seems a bit overkill. Changing things to versions just to get a string from it in the end. The original problem really only needs to have the non-number bits stripped off it like you did with the pattern matcher. |
It is getting stripped, the reason I'm using Version instead of String in many areas is because the version class allows us to do comparisons between versions you can't compare versions if they're just in a string format. For example if you're given two version strings you can't easily compute which one is less than/greater than. |
Is there a way to abstract a lot of the visible string parsing out. I don't mind using the Version class to better check version comparison if that's more effective. It just seems like all the string parsing like Maybe instead of having the pattern in string mgmt you move it to the version class and then you have a static like Furthermore I'm noticing that Just stuff to make it more clean in general. |
src/com/palmergames/bukkit/towny/command/TownyAdminCommand.java
Outdated
Show resolved
Hide resolved
I'll do some further testing on this later, thanks. |
extra text in the version string.
issues with config migration, courtesy of Siris with PR #4282.
Description:
Fixes issue where players using the version: "x.x.x.x-for-x.x.x" would receive errors because the version string was not sanitized.
By making this pull request, I represent that I have the right to waive copyright and related rights to my contribution, and agree that all copyright and related rights in my contributions are waived, and I acknowledge that the TownyAdvanced organization has the copyright to use and modify my contribution under the Towny License for perpetuity.