Yuck - I suggest you use baudehlo's address-rfc2822 parser in npm for this instead.  It's a direct port of Mail::Address