diff options
Diffstat (limited to 'shared/core-utils/common/version.ts')
-rw-r--r-- | shared/core-utils/common/version.ts | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/shared/core-utils/common/version.ts b/shared/core-utils/common/version.ts deleted file mode 100644 index 305287233..000000000 --- a/shared/core-utils/common/version.ts +++ /dev/null | |||
@@ -1,11 +0,0 @@ | |||
1 | // Thanks https://gist.github.com/iwill/a83038623ba4fef6abb9efca87ae9ccb | ||
2 | function compareSemVer (a: string, b: string) { | ||
3 | if (a.startsWith(b + '-')) return -1 | ||
4 | if (b.startsWith(a + '-')) return 1 | ||
5 | |||
6 | return a.localeCompare(b, undefined, { numeric: true, sensitivity: 'case', caseFirst: 'upper' }) | ||
7 | } | ||
8 | |||
9 | export { | ||
10 | compareSemVer | ||
11 | } | ||