-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement proper version sorting (#148)
* Implement proper version sorting Got bored and wanted to explore Typescript. Tested on https://typescriptlang.org/play: > console.log(sortVersions(['1.2.3', '1.2.3-d', '1.2.3.bcr.1', '1.2.3rc3', '1', 'k'])) ["k", "1.2.3rc3", "1.2.3.bcr.1", "1.2.3", "1.2.3-d", "1"] Addresses #54. Fixes #142. * fix formatting * more formatting * fiiiiiinnnne i'll install pnpm --------- Co-authored-by: Yun Peng <[email protected]>
- Loading branch information
1 parent
0f26865
commit 6b7e40a
Showing
1 changed file
with
68 additions
and
17 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