Skip to content

Commit

Permalink
import: Exclude < characters from URLs (closes #371)
Browse files Browse the repository at this point in the history
  • Loading branch information
josh-berry committed Jul 3, 2023
1 parent cad95fd commit aa13a45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tasks/import.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const trace = trace_fn("import");
// followed by "://", we just take everything after the "://" as part of the
// URL, up to a set of commonly-used terminator characters (e.g. quotes, closing
// brackets/parens, or whitespace).
const URL_RE = "[a-zA-Z][-a-zA-Z0-9+.]*:\\/\\/[^\\]\\) \t\n\r\"'>\\\\]+";
const URL_RE = "[a-zA-Z][-a-zA-Z0-9+.]*:\\/\\/[^\\]\\) \t\n\r\"'<>\\\\]+";
const MARKDOWN_LINK_RE = `\\[(?<md_title>[^\\]]+)\\]\\((?<md_url>${URL_RE})\\)`;
const ONETAB_LINK_RE = `^(?<ot_url>${URL_RE}) \\| (?<ot_title>.*)$`;
const PLAIN_URL_RE = `(?<url>${URL_RE})`;
Expand Down

0 comments on commit aa13a45

Please sign in to comment.