Closed Storkle closed 13 years ago
(matchure/if-match [[3 4] nil] 3 nil)
fix: in compile.clj (line 192) , change (or (instance? clojure.lang.Seqable ~matching-name) (instance? Iterable ~matching-name) (.isArray (class ~matching-name))) to
(or (instance? clojure.lang.Seqable ~matching-name) (instance? Iterable ~matching-name) (and ~matching-name (.isArray (class ~matching-name))))
Fixed. Releasing a new version soon.
Pushed a new version to clojars with this fix.
thanks!
(matchure/if-match [[3 4] nil] 3 nil)
fix: in compile.clj (line 192) , change (or (instance? clojure.lang.Seqable ~matching-name) (instance? Iterable ~matching-name) (.isArray (class ~matching-name))) to
(or (instance? clojure.lang.Seqable ~matching-name) (instance? Iterable ~matching-name) (and ~matching-name (.isArray (class ~matching-name))))