Skip to content

Commit

Permalink
Fix disambiguation of E-mail addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Wirth committed Apr 15, 2016
1 parent 4cfd728 commit 3f68abb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/ie/associator/disambiguator.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ findEmailTargets = (emailAddressList, personNameGrams) ->
for emailAddress in emailAddressList
targetFound = false # use this to break the loop
localPart = emailAddress.value.split('@')[0]
target = {}
target = {field: 'emailAddress'}
for genericLocalPart in genericLocalParts # check if can be associated to Account through generic local parts
if genericLocalPart == localPart
target.label = 'Account'
Expand All @@ -44,6 +44,5 @@ findEmailTargets = (emailAddressList, personNameGrams) ->
target.label = 'Account'
emailAddress.target = target
emailsWithTargets.push emailAddress

emailsWithTargets
module.exports = disambiguate

0 comments on commit 3f68abb

Please sign in to comment.