From 338301bb5dd50fff05ecfe7c7c7b467da8ad22b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hanno=20J=2E=20G=C3=B6decke?= Date: Sat, 17 Apr 2021 09:34:31 +0200 Subject: [PATCH] fix: failure during sync --- src/pushprocessor.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pushprocessor.js b/src/pushprocessor.js index 57ab74317..711f3b488 100644 --- a/src/pushprocessor.js +++ b/src/pushprocessor.js @@ -267,6 +267,10 @@ export function PushProcessor(client) { if (cond.value) { return cond.value === val; } + + if (typeof cond.pattern !== 'string') { + return false; + } let regex;