Update inline-tool-link.ts

Use https protocol instead of http.
This commit is contained in:
Florentina 2025-08-06 09:39:34 +03:00 committed by GitHub
commit 6e2a08029b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;