diff options
author | bobzel <zzzman@gmail.com> | 2025-02-03 10:23:56 -0500 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2025-02-03 10:23:56 -0500 |
commit | 1e673454f8cabf894e8dfec36734d2cb41caa7b1 (patch) | |
tree | 6cdd3864b5802c7f8dcadf6bf0a06701b1110e6d /src/client/documents/DocUtils.ts | |
parent | 573a052cc4778ef4df53e9911db07e998df06281 (diff) |
changed filter 'check' to be exact match and 'match' to be substring. fixed GPTpopup filtering to use a #chat tag instead of a chatFilter field.
Diffstat (limited to 'src/client/documents/DocUtils.ts')
-rw-r--r-- | src/client/documents/DocUtils.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/documents/DocUtils.ts b/src/client/documents/DocUtils.ts index d11a3e235..23032b62e 100644 --- a/src/client/documents/DocUtils.ts +++ b/src/client/documents/DocUtils.ts @@ -72,9 +72,9 @@ export namespace DocUtils { } const vals = StrListCast(fieldVal); // list typing is very imperfect. casting to a string list doesn't mean that the entries will actually be strings if (vals.length) { - return vals.some(v => typeof v === 'string' && v.includes(value as string)); // bcz: arghh: Todo: comparison should be parameterized as exact, or substring + return vals.some(v => typeof v === 'string' && v === (value as string)); // bcz: arghh: Todo: comparison should be parameterized as exact, or substring } - return Field.toString(fieldVal as FieldType).includes(value as string); // bcz: arghh: Todo: comparison should be parameterized as exact, or substring + return Field.toString(fieldVal as FieldType) === (value as string); // bcz: arghh: Todo: comparison should be parameterized as exact, or substring } /** * @param docs |