Update PluginBuilder/ModelBinders/BTCPayHostVersionModelBinder.cs

Co-authored-by: rockstardev <5191402+rockstardev@users.noreply.github.com>
This commit is contained in:
thgO.O 2026-04-07 13:34:47 -03:00 committed by GitHub
parent 8c50b6aad3
commit fbeea1c46f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -22,6 +22,7 @@ public static class BtcPayHostVersionParser
if (buildSeparator >= 0)
normalized = normalized[..buildSeparator];
// In future consider whitelisting only -rcN suffixes instead of stripping all prerelease labels
var prereleaseSeparator = normalized.IndexOf('-');
if (prereleaseSeparator >= 0)
normalized = normalized[..prereleaseSeparator];