Better search include/excludes
Some checks failed
Build / Build NPM Project (push) Successful in 43s
Build / Publish Documentation (push) Failing after 5s
Build / Tag Version (push) Successful in 8s

This commit is contained in:
2025-07-21 19:11:16 -04:00
parent c1577c2106
commit 397b165e55
2 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@ztimson/utils",
"version": "0.26.12",
"version": "0.26.13",
"description": "Utility library",
"author": "Zak Timson",
"license": "MIT",

View File

@ -39,8 +39,8 @@ export function logicTest(target: object, condition: string): boolean {
case '=':
case '==': return a == b;
case '!=': return a != b;
case '+': return a.toString().includes(b);
case '-': return !a.toString().includes(b);
case '+': return a?.toString().includes(b);
case '-': return !a?.toString().includes(b);
case '>': return a > b;
case '>=': return a >= b;
case '<': return a < b;