From 8c02cede0b1f4779d19ee6810f347b759c4fea44 Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 16 Sep 2026 16:52:07 +0200 Subject: [PATCH] Fixed jpath result --- FAQ.md | 2 +- app/src/main/java/eu/faircode/email/ExpressionHelper.java | 2 +- index.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/FAQ.md b/FAQ.md index acdbdf0a1d..0082fae854 100644 --- a/FAQ.md +++ b/FAQ.md @@ -3038,7 +3038,7 @@ The following extra operators are available: * *contains* (string/array of strings contains substring) * *matches* (string/array of strings matches regex) * *startswith* / *endswith* (string/array of strings starting or ending with a string; since version 1.2333) -* *jpath* (string/array of JSON strings matching the [specified path](https://github.com/json-path/jsonpath); since version 1.2333) +* *jpath* (array of strings matching the [specified path](https://github.com/json-path/jsonpath); since version 1.2333) The following extra functions are available: diff --git a/app/src/main/java/eu/faircode/email/ExpressionHelper.java b/app/src/main/java/eu/faircode/email/ExpressionHelper.java index ecbde10e77..b09d83d420 100644 --- a/app/src/main/java/eu/faircode/email/ExpressionHelper.java +++ b/app/src/main/java/eu/faircode/email/ExpressionHelper.java @@ -693,7 +693,7 @@ public class ExpressionHelper { @Override public EvaluationValue evaluate( Expression expression, Token operatorToken, EvaluationValue... operands) { - Object result = null; + List result = null; try { if (operands.length == 2) { diff --git a/index.html b/index.html index d0dd031f4e..daae28702f 100644 --- a/index.html +++ b/index.html @@ -1664,7 +1664,7 @@ X-Google-Original-From: Somebody <somebody+extra@example.org>
  • contains (string/array of strings contains substring)
  • matches (string/array of strings matches regex)
  • startswith / endswith (string/array of strings starting or ending with a string; since version 1.2333)
  • -
  • jpath (string/array of JSON strings matching the specified path; since version 1.2333)
  • +
  • jpath (array of strings matching the specified path; since version 1.2333)
  • The following extra functions are available: