From 389101eb7bc9a720a6ed7dcc273101d8f561d5bc Mon Sep 17 00:00:00 2001 From: Abdiel Kavash <19243993+AbdielKavash@users.noreply.github.com> Date: Tue, 20 Feb 2024 00:38:34 -0600 Subject: [PATCH] =?UTF-8?q?Added=20the=20=E2=80=99=20character=20--=20thou?= =?UTF-8?q?sands=20separator=20in=20Swiss=20locales=20--=20to=20expression?= =?UTF-8?q?=20parsing.=20(#32)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../gtnewhorizon/gtnhlib/util/parsing/MathExpressionParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gtnewhorizon/gtnhlib/util/parsing/MathExpressionParser.java b/src/main/java/com/gtnewhorizon/gtnhlib/util/parsing/MathExpressionParser.java index d5a83ea..b108f37 100644 --- a/src/main/java/com/gtnewhorizon/gtnhlib/util/parsing/MathExpressionParser.java +++ b/src/main/java/com/gtnewhorizon/gtnhlib/util/parsing/MathExpressionParser.java @@ -19,7 +19,7 @@ public class MathExpressionParser { * strings that do not evaluate to a valid value. See {@link #parse(String, Context)} for an explanation of the * syntax. */ - public static final Pattern EXPRESSION_PATTERN = Pattern.compile("[0-9.,  _+\\-*/^()eEkKmMgGbBtT%]*"); + public static final Pattern EXPRESSION_PATTERN = Pattern.compile("[0-9.,  _’+\\-*/^()eEkKmMgGbBtT%]*"); // Character ' ' (non-breaking space) to support French locale thousands separator. private static final Context defaultContext = new Context();