Skip to content
Merged
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
17 changes: 9 additions & 8 deletions lychee-lib/src/filter/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,15 @@ static UNSUPPORTED_DOMAINS: LazyLock<HashSet<&'static str>> = LazyLock::new(|| {

/// Pre-defined exclusions for known false-positives
const FALSE_POSITIVE_PAT: &[&str] = &[
r"^https?://schemas.openxmlformats.org",
r"^https?://schemas.zune.net",
r"^https?://www.w3.org/1999/xhtml",
r"^https?://www.w3.org/1999/xlink",
r"^https?://www.w3.org/2000/svg",
r"^https?://ogp.me/ns#",
r"^https?://schemas.microsoft.com",
r"^https?://(.*)/xmlrpc.php$",
r"^https?://schemas\.openxmlformats\.org",
r"^https?://schemas\.microsoft\.com",
r"^https?://schemas\.zune\.net",
r"^https?://www\.w3\.org/1999/xhtml",
r"^https?://www\.w3\.org/1999/xlink",
r"^https?://www\.w3\.org/2000/svg",
r"^https?://www\.w3\.org/2001/XMLSchema-instance",
r"^https?://ogp\.me/ns#",
r"^https?://(.*)/xmlrpc\.php$",
];

static FALSE_POSITIVE_SET: LazyLock<RegexSet> =
Expand Down