Skip to content

Commit

Permalink
fix #80 trim white spaces in query
Browse files Browse the repository at this point in the history
  • Loading branch information
ashphy committed Jan 8, 2025
1 parent 3a32558 commit b678289
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/use-jsonpath.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const jsonDocumentAtom = atom<JSONDocument>((get) => {

const resultAtom = atom<JSONPathResult>((get) => {
const jsonDocument = get(jsonDocumentAtom);
const query = get(queryAtom);
const query = get(queryAtom).trim();

try {
const result = evalJsonPath(
Expand Down

0 comments on commit b678289

Please sign in to comment.