From 4f7d61d64bbd4b37c30c2f385c83586d2c280a1d Mon Sep 17 00:00:00 2001 From: Nicolas CHABALIER Date: Fri, 26 Apr 2024 17:48:52 +0200 Subject: [PATCH 1/2] Fix IO parse expression with method containing '_' like 'grep_basic()' --- src/main/java/org/funz/script/ParseExpression.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) : ""; From b33f0fc7453a8b7e582ebc33eef861f645daae15 Mon Sep 17 00:00:00 2001 From: Nicolas CHABALIER Date: Mon, 10 Jun 2024 10:14:29 +0200 Subject: [PATCH 2/2] Update gitignore. --- .gitignore | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 1e0800e..e284a4c 100644 --- a/.gitignore +++ b/.gitignore @@ -30,4 +30,5 @@ /*.py /*.conf /Run* -/Design* \ No newline at end of file +/Design* +.idea/ \ No newline at end of file