mirror of https://github.com/laurent22/joplin.git
pull/9015/head
parent
e70f31baea
commit
0320d9f479
|
@ -164,6 +164,7 @@ class HtmlUtils {
|
||||||
if (url.startsWith('https://') ||
|
if (url.startsWith('https://') ||
|
||||||
url.startsWith('http://') ||
|
url.startsWith('http://') ||
|
||||||
url.startsWith('mailto://') ||
|
url.startsWith('mailto://') ||
|
||||||
|
url.startsWith('joplin://') ||
|
||||||
// We also allow anchors but only with a specific set of a characters.
|
// We also allow anchors but only with a specific set of a characters.
|
||||||
// Fixes https://github.com/laurent22/joplin/issues/8286
|
// Fixes https://github.com/laurent22/joplin/issues/8286
|
||||||
!!url.match(/^#[a-zA-Z0-9-]+$/)) return true;
|
!!url.match(/^#[a-zA-Z0-9-]+$/)) return true;
|
||||||
|
|
Loading…
Reference in New Issue