From 980eec31585648bdc9342a22e8523b15ed69c82d Mon Sep 17 00:00:00 2001 From: bom Date: Wed, 27 Jul 2022 11:28:49 +0200 Subject: [PATCH] Update name of `list-of-separated-by?` --- src/main/cljc/dda/c4k_common/predicate.cljc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/cljc/dda/c4k_common/predicate.cljc b/src/main/cljc/dda/c4k_common/predicate.cljc index 2917577..5a88b15 100644 --- a/src/main/cljc/dda/c4k_common/predicate.cljc +++ b/src/main/cljc/dda/c4k_common/predicate.cljc @@ -14,7 +14,7 @@ (and (string? input) (some? (re-matches #"(?=^.{4,253}$)(^((?!-)[a-zA-Z0-9-]{0,62}[a-zA-Z0-9]\.)+[a-zA-Z]{2,63}$)" input)))) -(defn list-of-separated-by? +(defn string-of-separated-by? [input spec-function separator] (every? true? (map spec-function (str/split input separator))))