diff --git a/package.json b/package.json index 706e06f..f48695e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ztimson/utils", - "version": "0.26.11", + "version": "0.26.12", "description": "Utility library", "author": "Zak Timson", "license": "MIT", diff --git a/src/search.ts b/src/search.ts index b44984c..63312a2 100644 --- a/src/search.ts +++ b/src/search.ts @@ -39,8 +39,8 @@ export function logicTest(target: object, condition: string): boolean { case '=': case '==': return a == b; case '!=': return a != b; - case '+': return typeof a?.includes != 'undefined' ? a.includes(b) : a == b; - case '-': return typeof a?.includes != 'undefined' ? !a.includes(b) : a != 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;