nodemailer / smtp-server

Create custom SMTP servers on the fly
Other
846 stars 146 forks source link

Unnecessary escape character in mailparser #92

Closed niftylettuce closed 6 years ago

niftylettuce commented 6 years ago

https://github.com/nodemailer/mailparser/blob/2e2cdeaebf08e169bdbf0137cf96d564dda2ae0c/lib/simple-parser.js#L56

Doesn't need the \ before the - in the regex.

andris9 commented 6 years ago

Yeah, I recently started using a linter rule in my editor that finds these things whenever I edit any files. Haven't touched this one so far but I'll fix it whenever I get to it.