Skip to content
Snippets Groups Projects
Commit b6129476 authored by Cam Saül's avatar Cam Saül
Browse files

Fix regex to match fns with no args in native queries (thanks @jjw123)

parent ea1245ba
No related branches found
No related tags found
No related merge requests found
......@@ -423,7 +423,7 @@
;; -> \"{\\\"$match\\\":[\\\"___ObjectId\\\", \\\"583327789137b2700a1621fb\\\"]}\""
[fn-name query-string]
(s/replace query-string
(re-pattern (format "%s\\(([^)]+)\\)" (name fn-name)))
(re-pattern (format "%s\\(([^)]*)\\)" (name fn-name)))
(format "[\"___%s\", $1]" (name fn-name))))
(defn- encode-fncalls
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment