From 6e2a08029b44f084875691c4cc21d204efae0194 Mon Sep 17 00:00:00 2001 From: Florentina <36894034+florentinap@users.noreply.github.com> Date: Wed, 6 Aug 2025 09:39:34 +0300 Subject: [PATCH] Update inline-tool-link.ts Use https protocol instead of http. --- src/components/inline-tools/inline-tool-link.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/inline-tools/inline-tool-link.ts b/src/components/inline-tools/inline-tool-link.ts index 9b413a564..8f1fa0c7e 100644 --- a/src/components/inline-tools/inline-tool-link.ts +++ b/src/components/inline-tools/inline-tool-link.ts @@ -351,7 +351,7 @@ export default class LinkInlineTool implements InlineTool { } /** - * Add 'http' protocol to the links like 'vc.ru', 'google.com' + * Add 'https' protocol to the links like 'vc.ru', 'google.com' * * @param {string} link - string to process */ @@ -374,7 +374,7 @@ export default class LinkInlineTool implements InlineTool { isProtocolRelative = /^\/\/[^/\s]/.test(link); if (!isInternal && !isAnchor && !isProtocolRelative) { - link = 'http://' + link; + link = 'https://' + link; } return link;