From 68cd9dd31d90743ee5d586ae564c20f0c5ae855e Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Fri, 1 Dec 2023 09:50:57 +0100 Subject: [PATCH] MOBILE-3947 locutus: Fix error when unserialize PHP string --- src/core/singletons/locutus.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/singletons/locutus.ts b/src/core/singletons/locutus.ts index 830cf8f95..22daa4f0f 100644 --- a/src/core/singletons/locutus.ts +++ b/src/core/singletons/locutus.ts @@ -310,7 +310,7 @@ function expectArray (str, cache) { throw SyntaxError('Expected }') } - return [ array[0], arrayLiteralBeginMatch?.length ?? 0 + (array[1] as number) + 1 ] // jump over } + return [ array[0], (arrayLiteralBeginMatch?.length ?? 0) + (array[1] as number) + 1 ] // jump over } } function expectArrayItems (str, expectedItems = 0, cache) {