Skip to content

Commit 6bde56f

Browse files
level-xxBen Marx
andauthored
Single period on line fix (#68)
* Encode all periods * Removed no-op --------- Co-authored-by: Ben Marx <marx@processesinmotion.com>
1 parent 03e58ce commit 6bde56f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

config/mail/encoding.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ const encoder = new TextEncoder();
1010
* @returns encoded string
1111
*/
1212
export function quotedPrintableEncode(data: string, encLB = false) {
13-
data.replaceAll("=", "=3D");
1413

1514
if (!encLB) {
1615
data = data.replaceAll(" \r\n", "=20\r\n").replaceAll(" \n", "=20\n");
@@ -23,7 +22,7 @@ export function quotedPrintableEncode(data: string, encLB = false) {
2322
if (encodedChar.length === 1) {
2423
const code = encodedChar[0];
2524

26-
if (code >= 32 && code <= 126 && code !== 61) return ch;
25+
if (code >= 32 && code <= 126 && code !== 61 && code !== 46) return ch;
2726
if (!encLB && (code === 10 || code === 13)) return ch;
2827
if (code === 9) return ch;
2928
}

0 commit comments

Comments
 (0)