Skip to content

Commit d171bba

Browse files
committed
Escape all operators in fields
1 parent 822a3c4 commit d171bba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/components/queryBuilder/utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ const getLimit = (limit?: string): string => {
290290

291291
const escapeFields = (fields: string[]): string[] => {
292292
return fields.map((f) => {
293-
return f.match(/^\d/) ? `"${f}"` : f;
293+
return f.match(/(^\d|\s|\$|\&|\|)/im) ? `"${f}"` : f;
294294
});
295295
};
296296

0 commit comments

Comments
 (0)