mirror of
https://github.com/penpot/penpot.git
synced 2025-02-10 00:58:26 -05: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
|
||||
{:type ::email
|
||||
:pred (fn [s]
|
||||
(and (string? s) (re-seq email-re s)))
|
||||
(and (string? s)
|
||||
(< (count s) 250)
|
||||
(re-seq email-re s)))
|
||||
:type-properties
|
||||
{:title "email"
|
||||
:description "string with valid email address"
|
||||
|
|
Loading…
Add table
Reference in a new issue