Skip to content

Commit

Permalink
fix: assist users with leading whitespace in their records
Browse files Browse the repository at this point in the history
  • Loading branch information
niftylettuce committed Aug 1, 2020
1 parent 9ab8227 commit 219db94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2166,7 +2166,7 @@ class ForwardEmail {

// add support for multi-line TXT records
for (let i = 0; i < records.length; i++) {
records[i] = records[i].join(''); // join chunks together
records[i] = records[i].join('').trim(); // join and trim chunks together
if (records[i].startsWith(`${this.config.recordPrefix}=`))
validRecords.push(
records[i].replace(`${this.config.recordPrefix}=`, '')
Expand Down

0 comments on commit 219db94

Please sign in to comment.