Changed common regex to be used by js
This commit is contained in:
parent
43d90ea8eb
commit
30ddfd295c
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@
|
||||||
(defn fqdn-string?
|
(defn fqdn-string?
|
||||||
[input]
|
[input]
|
||||||
(and (string? input)
|
(and (string? input)
|
||||||
(not (nil? (re-matches #"(?=^.{4,253}\.?$)(^((?!-)[a-zA-Z0-9-]{1,63}(?<!-)\.)+[a-zA-Z]{2,63}\.?$)" input)))))
|
(some? (re-matches #"(?=^.{4,253}$)(^((?!-)[a-zA-Z0-9-]{0,62}[a-zA-Z0-9]\.)+[a-zA-Z]{2,63}$)" input))))
|
||||||
|
|
||||||
(defn letsencrypt-issuer?
|
(defn letsencrypt-issuer?
|
||||||
[input]
|
[input]
|
||||||
|
|
Loading…
Reference in a new issue