Update PluginBuilder/ModelBinders/BTCPayHostVersionModelBinder.cs
Co-authored-by: rockstardev <5191402+rockstardev@users.noreply.github.com>
This commit is contained in:
parent
8c50b6aad3
commit
fbeea1c46f
@ -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];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user