From 9d82a70eb58c6b7aeef74e311f9b5d6e40ae1d45 Mon Sep 17 00:00:00 2001 From: WesleyEdwards Date: Wed, 28 Feb 2024 10:31:05 -0700 Subject: [PATCH] making second value case insensitive in evaluate condition --- web-alt/src/Condition.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web-alt/src/Condition.ts b/web-alt/src/Condition.ts index 8184cc4c..04ee0b9c 100644 --- a/web-alt/src/Condition.ts +++ b/web-alt/src/Condition.ts @@ -86,7 +86,7 @@ export function evaluateCondition(condition: Condition, model: T): boolean ignoreCase: boolean; } if (v.ignoreCase) - return ((model as unknown as string).toLowerCase().indexOf(v.value) !== -1) + return ((model as unknown as string).toLowerCase().indexOf(v.value.toLowerCase()) !== -1) else return ((model as unknown as string).indexOf(v.value) !== -1) case "FullTextSearch": @@ -95,7 +95,7 @@ export function evaluateCondition(condition: Condition, model: T): boolean ignoreCase: boolean; } if (v2.ignoreCase) - return ((model as unknown as string).toLowerCase().indexOf(v2.value) !== -1) + return ((model as unknown as string).toLowerCase().indexOf(v2.value.toLowerCase()) !== -1) else return ((model as unknown as string).indexOf(v2.value) !== -1) case "IntBitsClear":