Skip to content

Commit

Permalink
solve for null case on #1206
Browse files Browse the repository at this point in the history
  • Loading branch information
mattkrick committed Aug 21, 2017
1 parent 9e911b2 commit d3b410b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/universal/utils/parseEmailAddressList.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import emailAddresses from 'email-addresses';

const parseEmailAddressList = (rawStr) => {
const parseEmailAddressList = (rawStr = '') => {
// this breaks RFC5322 standards, but people are not standard :-(
const commaDelimStr = rawStr.replace(';', ',');
return emailAddresses.parseAddressList(commaDelimStr);
Expand Down

0 comments on commit d3b410b

Please sign in to comment.