mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-29 12:01:32 +02:00
12 lines
231 B
CoffeeScript
12 lines
231 B
CoffeeScript
mimelib = require("mimelib")
|
|
|
|
|
|
module.exports = EmailHelper =
|
|
|
|
parseEmail: (email) ->
|
|
email = mimelib.parseAddresses(email or "")[0]?.address?.toLowerCase()
|
|
if !email? or email == ""
|
|
return null
|
|
else
|
|
return email
|