Added the ’ character -- thousands separator in Swiss locales -- to expression parsing. (#32)

This commit is contained in:
Abdiel Kavash authored and GitHub committed 2024-02-20 07:38:34 +01:00
1 parent f54bc181cb
commit 389101eb7b
1 file changed
+1 -1
@@ -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();