Skip to content

Commit

Permalink
Added re-pattern and str/blank? str/includes? str/starts-with? str/en…
Browse files Browse the repository at this point in the history
…ds-with? to built-ins (#306)
  • Loading branch information
tonsky committed Jun 5, 2019
1 parent 9584ed9 commit f76a64b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
11 changes: 0 additions & 11 deletions .travis.yml

This file was deleted.

4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# WIP

- Added re-pattern and str/blank? str/includes? str/starts-with? str/ends-with? to built-ins (#306)

# 0.18.3

- Fixed vector misbehaving in queries in CLJS (#262)
Expand Down
5 changes: 4 additions & 1 deletion src/datascript/query.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,10 @@
'count count, 'range range, 'not-empty not-empty, 'empty? empty, 'contains? contains?,
'str str, 'pr-str pr-str, 'print-str print-str, 'println-str println-str, 'prn-str prn-str, 'subs subs,
're-find re-find, 're-matches re-matches, 're-seq re-seq, 're-pattern re-pattern,
'-differ? -differ?, 'get-else -get-else, 'get-some -get-some, 'missing? -missing?, 'ground identity})
'-differ? -differ?, 'get-else -get-else, 'get-some -get-some, 'missing? -missing?, 'ground identity,
'clojure.string/blank? str/blank?, 'clojure.string/includes? str/includes?,
'clojure.string/starts-with? str/starts-with?, 'clojure.string/ends-with? str/ends-with?
})

(def built-in-aggregates
(letfn [(sum [coll] (reduce + 0 coll))
Expand Down

0 comments on commit f76a64b

Please sign in to comment.