mirror of
https://github.com/penpot/penpot.git
synced 2025-05-18 13:16:10 +02:00
✨ Improve email clean mechanism
This commit is contained in:
parent
c975e0bcee
commit
16fa0b0330
2 changed files with 12 additions and 0 deletions
|
@ -46,6 +46,10 @@
|
|||
(let [email (str/lower email)
|
||||
email (if (str/starts-with? email "mailto:")
|
||||
(subs email 7)
|
||||
email)
|
||||
email (if (or (str/starts-with? email "<")
|
||||
(str/ends-with? email ">"))
|
||||
(str/trim email "<>")
|
||||
email)]
|
||||
email))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue