-
Notifications
You must be signed in to change notification settings - Fork 51
Open
Description
This works:
extractEmailsFromString(text, options = { isWrappedLessThanGreaterThan: false, }) {
if (options.isWrappedLessThanGreaterThan) {
return text.match(/(<[a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.[a-zA-Z0-9_-]+>)/gi);
}
return text.match(/([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.[a-zA-Z0-9_-]+)/gi);
}But this doesn't work:
extractEmailsFromString(text, options = {
isWrappedLessThanGreaterThan: false,
}) {
if (options.isWrappedLessThanGreaterThan) {
return text.match(/(<[a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.[a-zA-Z0-9_-]+>)/gi);
}
return text.match(/([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.[a-zA-Z0-9_-]+)/gi);
}I know ctags works on a line by line basis, so is this just not possible to implement? Thanks for making this project!
Metadata
Metadata
Assignees
Labels
No labels