chore(scripts): remove unused semver.utils.ts
Signed-off-by: Grigorii K. Shartsev <[email protected]>
This commit is contained in:
1 file changed
-18
@@ -1,18 +0,0 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
/**
|
||||
* Is version A greater than version B?
|
||||
*
|
||||
* @param {string} versionA - Version A
|
||||
* @param {string} versionB - Version B
|
||||
* @return {boolean} - Whether version A greater than version B
|
||||
*/
|
||||
export function semverGt(versionA, versionB) {
|
||||
const normalized = (version) => version.includes('-') ? version : `${version}-z`
|
||||
const a = normalized(versionA)
|
||||
const b = normalized(versionB)
|
||||
return a.localeCompare(b, 'en', { numeric: true }) > 0
|
||||
}
|
||||
Reference in new issue
Block a user