@evoke-platform/ui-components 1.0.1-dev.1 → 1.0.1-dev.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -333,7 +333,10 @@ const CriteriaBuilder = (props) => {
|
|
333
333
|
ruleProcessor: (rule, options) => {
|
334
334
|
let newRule = rule;
|
335
335
|
const isPresetValue = typeof rule.value === 'string' && rule.value.startsWith('{{') && rule.value.endsWith('}}');
|
336
|
-
if (
|
336
|
+
if (rule.operator !== 'null' && rule.operator !== 'notNull' && rule.value === null) {
|
337
|
+
newRule = { ...rule, value: '' };
|
338
|
+
}
|
339
|
+
else if (!disableRegexEscapeChars &&
|
337
340
|
['contains', 'beginsWith', 'endsWith'].includes(rule.operator) &&
|
338
341
|
!isPresetValue) {
|
339
342
|
newRule = { ...rule, value: escape(rule.value) };
|
@@ -195,10 +195,7 @@ CriteriaBuilder.args = {
|
|
195
195
|
name: { $in: ['Jane', 'John', 'Jack'] },
|
196
196
|
},
|
197
197
|
{
|
198
|
-
|
199
|
-
licenseeName: {
|
200
|
-
$gt: 'k',
|
201
|
-
},
|
198
|
+
inState: null,
|
202
199
|
},
|
203
200
|
{
|
204
201
|
amountOfInspections: {
|