Skip to content
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

Version Number failed to Parse if contains Non-digits characters #24

Closed
khalifavi opened this issue Mar 22, 2016 · 1 comment
Closed
Assignees
Labels
enhancement New feature or request

Comments

@khalifavi
Copy link

com.github.javiersantos.appupdater.objects.Version

The version object is using String of the project versionName, which could be anything including alphabet or symbols.

Version@compareTo(Version)

int thisPart = i < thisParts.length ? Integer.parseInt(thisParts[i]) : 0;

digit filter like in replaceAll could be added (ex.replaceAll("[^0-9?!\\.]",""))

@javiersantos javiersantos self-assigned this May 13, 2016
@javiersantos javiersantos added the enhancement New feature or request label May 13, 2016
@tevch
Copy link

tevch commented Jul 8, 2016

Would be great

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants