forked from ericm/yup
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The function sometimes accepts version tags as newer versions even though it is not the case, the whole function has been rewritten to work as follows: - checks every number between dots one by one - if it is a number (or 'r' + number) and it is different, then it returns the comparaison of the number - if it is the same number, then it ignores and iterate to the next number - if it is not a number but a commit hash, it returns true if is different. In all cases, commit hashes must be placed at the end of version tags so a complete return would work as intended A series of tests has been done on this function and can be run online, with comparaison with the previous implementation: https://go.dev/play/p/QUm8zPl_Ngw Fixes ericm#31
- Loading branch information
Showing
1 changed file
with
36 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters