Skip to content

Commit

Permalink
making second value case insensitive in evaluate condition
Browse files Browse the repository at this point in the history
  • Loading branch information
WesleyEdwards committed Feb 28, 2024
1 parent ee48f41 commit 9d82a70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web-alt/src/Condition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export function evaluateCondition<T>(condition: Condition<T>, 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":
Expand All @@ -95,7 +95,7 @@ export function evaluateCondition<T>(condition: Condition<T>, 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":
Expand Down

0 comments on commit 9d82a70

Please sign in to comment.