mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2025-03-02 00:16:47 +01:00
Reduced to useful function set
This commit is contained in:
parent
52e55dc489
commit
d4079d22bd
@ -217,7 +217,7 @@ public class GeneralUtils {
|
|||||||
DoubleEvaluator evaluator = new DoubleEvaluator();
|
DoubleEvaluator evaluator = new DoubleEvaluator();
|
||||||
|
|
||||||
// Validate the expression
|
// Validate the expression
|
||||||
if (!expression.matches("(?:abs|acos|asin|atan|average|ceil|cos|cosh|floor|ln|log|max|min|round|sin|sinh|sum|tan|tanh|random|[0-9n+\\-*/()%^ ])+")) {
|
if (!expression.matches("(?:abs|average|ceil|floor|max|min|round|sum|random|[0-9n+\\-*/()%^ ])+")) {
|
||||||
throw new IllegalArgumentException("Invalid expression");
|
throw new IllegalArgumentException("Invalid expression");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user