This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-01-29
Channels
- # announcements (1)
- # beginners (176)
- # biff (3)
- # calva (7)
- # clojure (68)
- # clojure-europe (18)
- # clojure-nl (1)
- # clojure-norway (12)
- # clojure-uk (6)
- # community-development (4)
- # conjure (1)
- # core-async (5)
- # datomic (21)
- # events (1)
- # fulcro (5)
- # funcool (3)
- # hyperfiddle (35)
- # leiningen (18)
- # malli (3)
- # nbb (20)
- # overtone (20)
- # pedestal (1)
- # polylith (68)
- # portal (6)
- # releases (1)
- # shadow-cljs (6)
- # slack-help (7)
- # squint (6)
- # vim (4)
- # xtdb (4)
Just found that cuerdas string library latest versions 2023.10.15-405 & 407 have a pretty serious bug; trim
considers capital E
and Q
as white space
(str/trim "Q dog slurped all Q")
=> "dog slurped all"
https://github.com/funcool/cuerdas/issues/91From release notes:
ā¢ "Add performance improvement for default case of trim
, rtrim
and ltrim
(arity 1)"
Something wrong with the new built-in regexp?
(def ^:private trim-default-re
(-> "\n\f\r\t " rx/escape str->trim-re))
(.toString trim-default-re)
=> "^[\\Q\\Q\n\f\r\t \\E\\\\E\\Q\\E]+|[\\Q\\Q\n\f\r\t \\E\\\\E\\Q\\E]+$"
.... got a flashback to my childhood and this book about the Q-dog that slurped all Qs from all books and street signs because he thought they looked like sitting cats (with their tails to the right) ... thus explaining why there are no Swedish words with the letter Q ... š š
š 1