mirror of
https://github.com/GTNewHorizons/GTNHLib.git
synced 2026-11-26 14:53:14 +00:00
Added the ’ character -- thousands separator in Swiss locales -- to expression parsing. (#32)
This commit is contained in:
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();
|
||||
|
||||
Reference in new issue
Block a user