Skip to content

Commit

Permalink
Merge pull request #81 from ashphy/fix-80-trim-white-spaces-in-query
Browse files Browse the repository at this point in the history
trim white spaces in query
  • Loading branch information
ashphy authored Jan 8, 2025
2 parents 3a32558 + b678289 commit 95d450b
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 95d450b

Please sign in to comment.