Skip to content

Commit

Permalink
revert unnecessary change
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeloffner committed Nov 16, 2023
1 parent 352ee81 commit 7d4340b
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,6 @@ public static boolean call(PageContext pc, Object obj) {
String str = Caster.toString(obj, null);
if (StringUtil.isEmpty(str, true)) return false;

str = str.trim();
if ((!str.startsWith("{") && !str.startsWith("[")) || (!str.endsWith("}") && !str.endsWith("]"))) {
return false;
}

try {
new JSONExpressionInterpreter().interpret(pc, str);
return true;
Expand Down

0 comments on commit 7d4340b

Please sign in to comment.