This repository has been archived by the owner on Dec 15, 2022. It is now read-only.
Devel: Better recognition of newer Java versions #138
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Identify the Bug
#137
Description of the Change
I changed a little bit the REGEXP in getJavaVersionFromOutput() inside the lib/main.js file to be able to recognize Java versions which consists of 3rd dot in java version number.
I also added test for it in test/main.test.js.
This maybe should not be part of this pull request but I also changed test/runner.js and autoImport.....test.js as described in commits.
Please be patient this it my first contribution at GitHub.
Thank you for your time.
Alternate Designs
I considered redesigning the REGEXP and tests for this function but it could be a mess.
Now it is rather a small change with an understandable diff.
Possible Drawbacks
IDK, the change only adds underscore as the variant into REGEXP at specific position which was not changed.
Verification Process
npm test
where each test passed including the new one without problem.Release Notes
Better recognition of newer Java versions.