Skip to content

Commit

Permalink
Added the ’ character -- thousands separator in Swiss locales -- to e…
Browse files Browse the repository at this point in the history
…xpression parsing. (#32)
  • Loading branch information
AbdielKavash authored Feb 20, 2024
1 parent f54bc18 commit 389101e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 389101e

Please sign in to comment.