From a7361a3e7cd335c8932deba88fe60e8f673c2d40 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Thu, 13 Mar 2025 22:40:41 +0100 Subject: Implement JSON string concatenation with & operator (#7414) Inspired by [JSONata syntax](https://docs.jsonata.org/expressions). fix https://github.com/FreshRSS/FreshRSS/issues/6565 --- tests/app/Utils/dotNotationUtilTest.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests') diff --git a/tests/app/Utils/dotNotationUtilTest.php b/tests/app/Utils/dotNotationUtilTest.php index 20d4726af..787d3ddf3 100644 --- a/tests/app/Utils/dotNotationUtilTest.php +++ b/tests/app/Utils/dotNotationUtilTest.php @@ -33,6 +33,9 @@ class dotNotationUtilTest extends PHPUnit\Framework\TestCase { yield [$array, 'items[0].meta.title', 'first']; yield [$array, 'items.1.meta.title', 'second']; yield [$array, 'items[1].meta.title', 'second']; + yield [$array, '"Hello " & hello & \'!\'', 'Hello world!']; + yield [$array, '"Hello & goodbye " & hello & \'!\'', 'Hello & goodbye world!']; + yield [$array, '"Hello " & hello & deeper.hello & "!"', 'Hello worldagain!']; } /** -- cgit v1.2.3