|
|
|
@ -16,17 +16,17 @@ const MATCHERS = [
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
(text) => {
|
|
|
|
|
const match = EMAIL_MATCHER.exec(text);
|
|
|
|
|
return (
|
|
|
|
|
match && {
|
|
|
|
|
index: match.index,
|
|
|
|
|
length: match[0].length,
|
|
|
|
|
text: match[0],
|
|
|
|
|
url: `mailto:${match[0]}`
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
// (text) => {
|
|
|
|
|
// const match = EMAIL_MATCHER.exec(text);
|
|
|
|
|
// return (
|
|
|
|
|
// match && {
|
|
|
|
|
// index: match.index,
|
|
|
|
|
// length: match[0].length,
|
|
|
|
|
// text: match[0],
|
|
|
|
|
// url: `mailto:${match[0]}`
|
|
|
|
|
// }
|
|
|
|
|
// );
|
|
|
|
|
// }
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
export default function PlaygroundAutoLinkPlugin() {
|
|
|
|
|