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!
This works:
But this doesn't work:
I know ctags works on a line by line basis, so is this just not possible to implement? Thanks for making this project!