Created
April 24, 2014 13:45
-
-
Save jdcauley/11255167 to your computer and use it in GitHub Desktop.
asdf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
destroyMembersSubjectLine: function(data, cb){ | |
console.log('destroy members'); | |
// Get Addresses from Body | |
var destroyText = data.bodyText; | |
var bodyAddresses = []; | |
parser.addRule(/([A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]+)/gi, function(tag) { | |
var cleanTag = tag; | |
bodyAddresses.push(cleanTag); | |
console.log(cleanTag); | |
}); | |
var newMembers = parser.parse(destroyText); | |
console.log('bodyAddresses: '); | |
console.log(bodyAddresses); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment