Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Allow / and . in named parameters for easy use of namespaced keywords
This is useful for passing a clojure.spec conformed map directly as the
parameter map to an insert function.
  • Loading branch information
Markus Penttila committed Sep 26, 2016
commit 94c8c35c56e8a874ee236edd929a877b5970928c
2 changes: 1 addition & 1 deletion src/jeesql/statement_parser.clj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
(def ^{:doc "Regular expression to split statement into three parts: before the first parameter,
the parameter name and the rest of the statement. A parameter always starts with a single colon and
may contain alphanumerics as well as '-', '_' and '?' characters."}
parameter #"(?s)(.*?[^:\\]):(\p{Alpha}[\p{Alnum}\_\-\?]*)(.*)")
parameter #"(?s)(.*?[^:\\]):(\p{Alpha}[\p{Alnum}\_\-\?\./]*)(.*)")

(defn- replace-escaped-colon [string]
(str/replace string #"\\:" ":"))
Expand Down