Changeset f94d32


Ignore:
Timestamp:
Dec 9, 2007, 9:09:15 PM (14 years ago)
Author:
rene <rene@…>
Branches:
master
Children:
63fe91
Parents:
eb8a8e
Message:

reconize names if no email is found in parsed textfield

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chrome/content/v_identity/v_identity.js

    reb8a8e rf94d32  
    7171            var name = ""; email = "";
    7272            // prefer an email address separated with < >, only if not found use any other
    73             if (address.match(/<\s*[^>\s]*@[^>\s]*\s*>/) || address.match(/<?\s*[^>\s]*@[^>\s]*\s*>?/)) {
     73            if (address.match(/<\s*[^>\s]*@[^>\s]*\s*>/) || address.match(/<?\s*[^>\s]*@[^>\s]*\s*>?/) || address.match(/$/)) {
    7474                name = RegExp.leftContext + RegExp.rightContext
    7575                email = RegExp.lastMatch
Note: See TracChangeset for help on using the changeset viewer.