mirror of
https://github.com/penpot/penpot.git
synced 2025-08-06 08:18:26 +02:00
✨ Ensure that all emails are under 250chars
This commit is contained in:
parent
7b0d3bdcab
commit
1464f5da90
1 changed files with 3 additions and 1 deletions
|
@ -282,7 +282,9 @@
|
||||||
(def! ::email
|
(def! ::email
|
||||||
{:type ::email
|
{:type ::email
|
||||||
:pred (fn [s]
|
:pred (fn [s]
|
||||||
(and (string? s) (re-seq email-re s)))
|
(and (string? s)
|
||||||
|
(< (count s) 250)
|
||||||
|
(re-seq email-re s)))
|
||||||
:type-properties
|
:type-properties
|
||||||
{:title "email"
|
{:title "email"
|
||||||
:description "string with valid email address"
|
:description "string with valid email address"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue