From d28b8a83fdbb7677b890cff81357554b977002e9 Mon Sep 17 00:00:00 2001 From: GermanBluefox Date: Mon, 5 Feb 2018 00:21:04 +0100 Subject: [PATCH] ### 3.6.4 (2018-02-05) * (bluefox) Pattern error is fixed --- README.md | 3 +++ io-package.json | 13 ++++++++++++- lib/patternCompareFunctions.js | 5 +++++ package.json | 2 +- 4 files changed, 21 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5ddc69e9b..8121d31ad 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,9 @@ Hier kann man die Beschreibung von [Blockly](doc/de/blockly.md) finden. Описание по [blockly](doc/ru/blockly.md) можно найти [здесь](doc/ru/blockl.md). ## Changelog +### 3.6.4 (2018-02-05) +* (bluefox) Pattern error is fixed + ### 3.6.3 (2018-01-31) * (bluefox) Fixing the CSS for CRON dialog * (bluefox) Fixing the reorder of scripts diff --git a/io-package.json b/io-package.json index e5e9366af..929aefa44 100644 --- a/io-package.json +++ b/io-package.json @@ -1,7 +1,7 @@ { "common": { "name": "javascript", - "version": "3.6.3", + "version": "3.6.4", "title": "Script Engine", "titleLang": { "en": "Script Engine", @@ -20,6 +20,17 @@ "Apollon77 " ], "news": { + "3.6.4": { + "en": "Pattern error is fixed", + "de": "Musterfehler ist behoben", + "ru": "Исправлена ​​ошибка проверки событий", + "pt": "O erro de padrão é corrigido", + "nl": "Patroonfout is opgelost", + "fr": "L'erreur de modèle est fixe", + "it": "L'errore di modello è stato risolto", + "es": "Se solucionó el error de patrón", + "pl": "Błąd wzorca został naprawiony" + }, "3.6.3": { "en": "Fixing the CSS for CRON dialog\nFixing the reorder of scripts", "de": "Korrigieren des CSS für den CRON-Dialog\nReparieren von Skripten", diff --git a/lib/patternCompareFunctions.js b/lib/patternCompareFunctions.js index ed0ca7948..6f467e2e1 100644 --- a/lib/patternCompareFunctions.js +++ b/lib/patternCompareFunctions.js @@ -324,6 +324,11 @@ var patternCompareFunctions = { if (isRegExp(penumName)) { return function (event) { if (event.enumNames) { + if (!(event.enumNames instanceof Array)) { + console.error('Invalid type of enumNames: ' + (typeof event.enumNames) + ' ' + JSON.stringify(event.enumNames)); + return false; + } + for (var j = 0; j < event.enumNames.length; j++) { if (penumName.test(event.enumNames[j])) { return true; diff --git a/package.json b/package.json index 4f71eaab7..e1534f9a5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "iobroker.javascript", - "version": "3.6.3", + "version": "3.6.4", "description": "Javascript/Coffescript Script Engine for ioBroker", "author": "bluefox ", "contributors": [