Changed common regex to be used by js

This commit is contained in:
bom 2021-06-14 09:46:53 +02:00
parent 43d90ea8eb
commit 30ddfd295c

View file

@ -10,7 +10,7 @@
(defn fqdn-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?
[input]