From 3a3eec3665124d7de2a7d72dc1c4a2f8ff9d68fb Mon Sep 17 00:00:00 2001 From: Lei OT Date: Wed, 11 Dec 2024 09:33:26 +0800 Subject: [PATCH] =?UTF-8?q?=E9=82=AE=E4=BB=B6=E5=8F=96=E6=B6=88=E9=82=AE?= =?UTF-8?q?=E4=BB=B6=E5=9C=B0=E5=9D=80autolink?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../LexicalEditor/plugins/AutoLinkPlugin.jsx | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/components/LexicalEditor/plugins/AutoLinkPlugin.jsx b/src/components/LexicalEditor/plugins/AutoLinkPlugin.jsx index 3475c91..c7989b4 100644 --- a/src/components/LexicalEditor/plugins/AutoLinkPlugin.jsx +++ b/src/components/LexicalEditor/plugins/AutoLinkPlugin.jsx @@ -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() {