- #23 Fix
lisp-case
erroneously splitting on parenthesis.
- #22 Fix
lisp-case
removing special characters
declare
every variable we re-export or alias, to make life easier on tooling relying on static analysis.
- #18
camel-case
vs empty string - #17
slice
with length outside string boundary - #16
slug
vs uppercase diacritical marks
- Add missing cljs alias for
replace-first
.
Most of these are motivated by the changes to clojure.string
in 1.8.
- Bump Clojure and Clojurescript dependencies to latest.
- Rename
contains?
toincludes?
and expand input values to includejava.lang.CharSequence
. - Rename
contains-all?
toincludes-all?
. - Rename
contains-any?
toincludes-any?
. - Alias
clojure.string/index-of?
replacing our own implementation. - Alias
clojure.string/last-index-of?
replacing our own implementation. - Extend the input value of
starts-with?
to include anything implementingjava.lang.CharSequence
to match the version inclojure.string
. - Extend the input value of
ends-with?
to include anything implementingjava.lang.CharSequence
to match the version inclojure.string
.
- #5
in
slugnow changes
łto
l`, instead of deleting the character. - Add
translate
, used to translate occurrences of certain characters into something else.
- #5
strip-accents
translated the letterł
tol
in the cljs version.
- Add Clojurescript support.
- Remove
title-case
, it was duplicatingclojure.string/capitalize
. - Various docstring improvements.
- #4 Inconsistency in the
pascal-case
docstring. Examples were correct, prose was wrong.
- Add
char-at
, which wraps the native String/charAt - Add
re-quote
which quotes a string, for use in regular expressions.
mixed-case?
is now false on strings like "123" where no character has a case.swap-case
on "ß" now returns "SS"- Fix
starts-with?
throwing exception whenprefix
is longer thans
.