mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-10-28 00:07:33 +00:00
When running a custom build or pre-release version (e.g. v0.1.183-custom), parseVersion failed to parse the patch segment because of the non-numeric suffix, causing compareVersions to incorrectly report an available update. This commit strips any hyphenated suffix before splitting SemVer components. Signed-off-by: WUJI-Labs <zoujincool@gmail.com>