Closed zikajk closed 1 year ago
going to check this after work, thanks for the report @zikajk
ok, not a bug, clojurescript has the same behavior, Dart RegExp
engine matches the Javascript one (hence the cljs one)
Thanks for the info, I got burned when I wanted to use the existing CLJ library :-).
sorry about that
Describe the bug Regex function has dfifferent output in CLJ and CLJD
To Reproduce
Run
(->> "1900-01-01 Mon 12:12" (re-seq #"(\d{4})-(\d{2})-(\d{2}) (\w{3})(?: (\d{1,2}):(\d{2})(-(\d{1,2}):(\d{2})|.*)?)?") first)
in Clojure and it returns["1900-01-01 Mon 12:12" "1900" "01" "01" "Mon" "12" "12" "" nil nil]
But ClojureDart returns
["1900-01-01 Mon 12:12" "1900" "01" "01" "Mon" "12" "12" nil nil nil]
Expected behavior Same result