Skip to content

Commit

Permalink
lib: support spaces in field key search (#298)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArcaTech committed Aug 15, 2023
1 parent 0185551 commit daf1980
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/workbench/workbench.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit daf1980

Please sign in to comment.