Skip to content

Commit 95d450b

Browse files
authored
Merge pull request #81 from ashphy/fix-80-trim-white-spaces-in-query
trim white spaces in query
2 parents 3a32558 + b678289 commit 95d450b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hooks/use-jsonpath.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const jsonDocumentAtom = atom<JSONDocument>((get) => {
4848

4949
const resultAtom = atom<JSONPathResult>((get) => {
5050
const jsonDocument = get(jsonDocumentAtom);
51-
const query = get(queryAtom);
51+
const query = get(queryAtom).trim();
5252

5353
try {
5454
const result = evalJsonPath(

0 commit comments

Comments
 (0)