Skip to content

Commit 0722069

Browse files
committed
refactor: actually use CLRF instead of making CR optional
1 parent 71d4cb5 commit 0722069

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/send-mail.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export async function parseMBox(mbox: string, gentle?: boolean): Promise<IParsed
5454

5555
for (const entry of parsed.headerLines) {
5656
// try to parse header line and consume a leading line break after the colon in folded headers
57-
const valueSet = entry.line.match(/(.*?):(?:\r?\n)? *([^]*)$/);
57+
const valueSet = entry.line.match(/(.*?):(?:\r\n)? *([^]*)$/);
5858
if (!valueSet) {
5959
if (entry.line[entry.line.length - 1] === ":") {
6060
continue;

0 commit comments

Comments
 (0)