Skip to content

Commit 7ef1ed8

Browse files
joshuamillerdnolen
authored andcommitted
Port sequence check into conform.
1 parent 4c51575 commit 7ef1ed8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/cljs/cljs/spec.cljs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,8 @@
692692
(assoc ret (nth (if conform-keys cv v) 0) (nth cv 1))))
693693
identity]
694694

695-
(list? x) [empty addcv reverse]
695+
(c/or (list? conform-into) (seq? conform-into) (c/and (not conform-into) (c/or (list? x) (seq? x))))
696+
[empty addcv reverse]
696697

697698
:else [#(empty (c/or conform-into %)) addcv identity]))]
698699
(reify

0 commit comments

Comments
 (0)