fix(calc): Replace Unicode 2212 (Minus Sign) with '-'

This commit is contained in:
Michael Aaron Murphy 2022-03-26 12:23:26 +01:00 committed by Michael Murphy
parent 6057888643
commit 2e38c69b69

View file

@ -211,7 +211,7 @@ async fn qcalc(regex: &mut Regex, expression: &str, decimal_comma: bool) -> Opti
normalized = &normalized[1..normalized.len() - 1];
}
output.push_str(normalized);
output.push_str(&normalized.replace('\u{2212}', "-"));
};
}