diff --git a/src/main/java/org/funz/script/ParseExpression.java b/src/main/java/org/funz/script/ParseExpression.java index 6835f83..796ef29 100644 --- a/src/main/java/org/funz/script/ParseExpression.java +++ b/src/main/java/org/funz/script/ParseExpression.java @@ -225,7 +225,7 @@ public static Object CallMethod(Object o, String expr) throws Exception { String head = ""; if (method.length() > 0) { int h = method.length() - 1; - while (h > 0 && (Character.isLetterOrDigit(method.charAt(h)) || method.charAt(h) == '.')) { + while (h > 0 && (Character.isLetterOrDigit(method.charAt(h)) || method.charAt(h) == '.' || method.charAt(h) == '_')) { h--; } head = h > 0 ? method.substring(0, h + 1) : "";