Skip to content

Fixing trailing non-numerical character parsing issue#238

Merged
piotrooo merged 1 commit intosemver4j:mainfrom
severn-everett:invalid_prerelease
Apr 10, 2024
Merged

Fixing trailing non-numerical character parsing issue#238
piotrooo merged 1 commit intosemver4j:mainfrom
severn-everett:invalid_prerelease

Conversation

@severn-everett
Copy link
Copy Markdown
Contributor

Improved parsing code for prerelease comparison so that trailing non-numerical characters do not cause NFEs; Reworked some code in Comparator to reduce "exceptions as flow control" occurrences; Inlined some one-line functions in Comparator to reduce code base size; Memoized regex patterns in Comparator

Fixes #234

…numerical characters do not cause NFEs; Reworked some code in Comparator to reduce "exceptions as flow control" occurrences; Inlined some one-line functions in Comparator to reduce code base size; Memoized regex patterns in Comparator
@severn-everett
Copy link
Copy Markdown
Contributor Author

Suggestions on additional test cases to add would be welcome

@piotrooo piotrooo added the bug Something isn't working label Apr 10, 2024
@piotrooo
Copy link
Copy Markdown
Member

LGTM.

@piotrooo piotrooo merged commit 45c99f8 into semver4j:main Apr 10, 2024
@severn-everett severn-everett deleted the invalid_prerelease branch April 11, 2024 08:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

version compare error

2 participants