邮件取消邮件地址autolink

dev/emitter
Lei OT 1 year ago
parent 6205520872
commit 3a3eec3665

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

Loading…
Cancel
Save