From cb25c20123b57dd362f99225dfcc60e229869fb0 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Tue, 6 Dec 2022 08:30:18 +0000 Subject: [PATCH] fix search (#1822) --- src/@utils/aquarius/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/@utils/aquarius/index.ts b/src/@utils/aquarius/index.ts index 1bc70cdbd..070037fcc 100644 --- a/src/@utils/aquarius/index.ts +++ b/src/@utils/aquarius/index.ts @@ -19,7 +19,7 @@ export const MAXIMUM_NUMBER_OF_PAGES_WITH_RESULTS = 476 export function escapeEsReservedCharacters(value: string): string { // eslint-disable-next-line no-useless-escape const pattern = /([\!\*\+\-\=\<\>\&\|\(\)\[\]\{\}\^\~\?\:\\/"])/g - return value.replace(pattern, '\\$1') + return value?.replace(pattern, '\\$1') } /**