mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-01-18 13:26:47 +01:00
[Fix] CurrencyValue parsing shouldn't depend on locale
This commit is contained in:
parent
4cf3249e0b
commit
d8a162fb6e
@ -17,7 +17,7 @@ namespace BTCPayServer
|
||||
}
|
||||
var match = _Regex.Match(str);
|
||||
if (!match.Success ||
|
||||
!decimal.TryParse(match.Groups[1].Value, out var v))
|
||||
!decimal.TryParse(match.Groups[1].Value, NumberStyles.Any, CultureInfo.InvariantCulture, out var v))
|
||||
return false;
|
||||
|
||||
var currency = match.Groups[match.Groups.Count - 1].Value.ToUpperInvariant();
|
||||
|
Loading…
Reference in New Issue
Block a user