Skip to content

Commit b678289

Browse files
committed
fix #80 trim white spaces in query
1 parent 3a32558 commit b678289

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)