mirror of
https://github.com/codex-team/editor.js
synced 2026-03-17 08:05:47 +01:00
Update inline-tool-link.ts
Use https protocol instead of http.
This commit is contained in:
parent
7da61e98ff
commit
6e2a08029b
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue