Created VersionHelper.php (#1731)

* Created `VersionHelper.php`

* Update VersionHelper.php

* Update CHANGELOG.md
This commit is contained in:
Roman Kelesidis 2025-01-02 12:34:13 +07:00 committed by GitHub
commit fd7dc7ac95
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 51 additions and 16 deletions

View file

@ -2157,20 +2157,6 @@ function readUpdaterFile(): array|bool
return json_decode(file_get_contents(UPDATER_FILE), true);
}
/**
* Version formatter
*
* @param string $version
* @return string
*/
function versionFormatter(string $version): string
{
$version = trim($version);
$version = mb_strtolower($version, 'UTF-8');
return str_replace('v', '', $version);
}
/**
* IP Geolocation API
*