Use de-AT locale with narrow nbsp

This commit is contained in:
2023-08-09 18:48:50 +02:00
parent 1226e85c4a
commit f4c24d9578
3 changed files with 6 additions and 3 deletions

View File

@ -15,7 +15,7 @@ namespace Elwig.Dialogs {
private void ConfirmButton_Click(object sender, RoutedEventArgs evt) {
DialogResult = true;
Weight = int.Parse(WeightInput.Text.Replace(".", ""));
Weight = int.Parse(WeightInput.Text.Replace("\u202f", ""));
Reason = Regex.Replace(ReasonInput.Text, @"\s+", "").Trim();
if (Reason == "") {
Reason = null;