Merge pull request #11008 from overleaf/msm-fix-email-helper-group
[web] Prevent NPE parsing RFC5322 email groups GitOrigin-RevId: 57fa7dc523b94c44afdd45a790ff6c3e62e45214
This commit is contained in:
@@ -29,4 +29,10 @@ describe('EmailHelper', function () {
|
||||
expect(parseEmail(address)).to.equal(null)
|
||||
expect(parseEmail(address, true)).to.equal(null)
|
||||
})
|
||||
|
||||
it('should return null for a group of addresses', function () {
|
||||
const address = 'Group name:test1@example.com,test2@example.com;'
|
||||
expect(parseEmail(address)).to.equal(null)
|
||||
expect(parseEmail(address, true)).to.equal(null)
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user