Replace deprecated constant

This commit is contained in:
Tom Morris 2020-08-22 20:30:23 -04:00
parent 441c069bc5
commit 95756bf11f

View File

@ -46,7 +46,7 @@ public class Trim implements Function {
if (args.length == 1) {
Object s1 = args[0];
if (s1 != null && s1 instanceof String) {
return CharMatcher.WHITESPACE.trimFrom((String) s1);
return CharMatcher.whitespace().trimFrom((String) s1);
}
}
return new EvalError("Invalid parameters");