From bdd7a585a0104f6907a36675ae7d7afd9c5301f9 Mon Sep 17 00:00:00 2001 From: Dwayne Harris Date: Tue, 15 Aug 2023 15:34:11 -0400 Subject: [PATCH] lib: support spaces in field key search --- lib/workbench/workbench.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/workbench/workbench.ts b/lib/workbench/workbench.ts index 590c8d0..a0a248c 100644 --- a/lib/workbench/workbench.ts +++ b/lib/workbench/workbench.ts @@ -344,7 +344,8 @@ export class Workbench { fields[f.name.toLowerCase()] = f.value.toLowerCase(); } for (const f in fieldQuery) { - if (!fields[f] || fields[f] !== fieldQuery[f].replace(/['"]/g, "")) { + const field = fields[f.replace(/['"]/g, "")]; + if (!field || field !== fieldQuery[f].replace(/['"]/g, "")) { return false; } }