Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/server/src/asset-references.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const MARKDOWN_LINK_OR_IMAGE_RE =
/!?\[[^\]\n]*(?:\][^[\]\n]*)?\]\((?:<([^>\n]+)>|([^)\s]+))(?:\s+['"][^'"]*['"])?\)/g;
const WIKI_LINK_OR_EMBED_RE = /!?\[\[([^[\]|#]+?)(?:#[^\]|]+?)?(?:\|[^\]]+?)?\]\]/g;
const HTML_LINK_ATTR_RE =
/<[\w:-]+\b[^>]*?\s+(?:href|src)\s*=\s*(?:"([^"\n]*)"|'([^'\n]*)'|([^”\n]*)|([^\s"'=<>`]+))/gi;
/<[\w:-]+\b[^>]*?\s+(?:href|src)\s*=\s*(?:([^\n]*)|'([^'\n]*)'|\u201c([^\u201d\n]*)\u201d|([^\s'=<>`]+))/gi;

export function isRemoteOrOpaqueHref(href: string): boolean {
return (
Expand Down
Loading