Skip to content

Commit

Permalink
Fix IO parse expression with method containing '_' like 'grep_basic()'
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas CHABALIER committed Apr 26, 2024
1 parent 30dbf78 commit 4f7d61d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/funz/script/ParseExpression.java
Original file line number Diff line number Diff line change
Expand Up @@ -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) : "";
Expand Down

0 comments on commit 4f7d61d

Please sign in to comment.