Bugfix TypeError: b64Encode(...).match(...) is null

This commit is contained in:
the-djmaze 2024-02-26 16:42:35 +01:00
parent 99b7ec661c
commit 2559c09b23

View file

@ -66,7 +66,7 @@ const
tpl = createElement('template'), tpl = createElement('template'),
base64_encode = text => b64Encode(text).match(/.{1,76}/g).join('\r\n'), base64_encode = text => text ? b64Encode(text).match(/.{1,76}/g).join('\r\n') : '',
getEmail = value => addressparser(value)[0]?.email || false, getEmail = value => addressparser(value)[0]?.email || false,