From 87387fcc57c34be53898da9e3ba6916713954f4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= Date: Tue, 30 Aug 2022 08:56:12 +0200 Subject: [PATCH] CustomCategory: test-compile 'info' --- src/customCategory.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/customCategory.js b/src/customCategory.js index 2ca224da..b7d2d1f5 100644 --- a/src/customCategory.js +++ b/src/customCategory.js @@ -427,7 +427,7 @@ function customCategoryTest (value) { return new Error('"query" can not be parsed!') } - const fields = ['feature', 'memberFeature'] + let fields = ['feature', 'memberFeature'] for (let i1 = 0; i1 < fields.length; i1++) { const k1 = fields[i1] if (data[k1]) { @@ -448,6 +448,17 @@ function customCategoryTest (value) { } } } + + fields = ['info'] + for (let i1 = 0; i1 < fields.length; i1++) { + const k1 = fields[i1] + if (data[k1]) { + const err = customCategoryTestCompile(data[k1]) + if (err) { + return new Error('Compiling /' + k1 + ': ' + err.message) + } + } + } } function customCategoryTestCompile (data) {