From a846a445fe0dd5af740fe3b83b397bdac51ce646 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Raimund=20Schl=C3=BC=C3=9Fler?= Date: Sun, 5 Mar 2023 11:56:07 +0100 Subject: [PATCH] Remove unused parseUrl parameter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Raimund Schlüßler --- src/components/NcRichText/autolink.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/NcRichText/autolink.js b/src/components/NcRichText/autolink.js index 4bc39e6c9b..badf54c441 100644 --- a/src/components/NcRichText/autolink.js +++ b/src/components/NcRichText/autolink.js @@ -32,7 +32,7 @@ export const remarkAutolink = function({ autolink, useMarkdown }) { } visit(tree, (node) => node.type === 'text', (node, index, parent) => { - let parsed = parseUrl(node.value, Link) + let parsed = parseUrl(node.value) parsed = parsed.map((n) => { if (typeof n === 'string') { return u('text', n) @@ -49,7 +49,7 @@ export const remarkAutolink = function({ autolink, useMarkdown }) { } } -export const parseUrl = (text, linkComponent) => { +export const parseUrl = (text) => { let match = URL_PATTERN_AUTOLINK.exec(text) const list = [] let start = 0