chore(scripts): remove unused semver.utils.ts

Signed-off-by: Grigorii K. Shartsev <[email protected]>
This commit is contained in:
Grigorii K. Shartsev committed 2026-10-15 18:41:02 +02:00
1 parent 431b4142ad
commit 2dbf4217f4
1 file changed
-18
-18
View File
@@ -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
}