From 83fe1248c4b75e8aa23589490f0f4b03c746a1af Mon Sep 17 00:00:00 2001 From: tooomm Date: Fri, 20 Jun 2025 15:38:49 +0200 Subject: [PATCH] Add xml schema found in xsd files to list of exclusions (#1735) * Add xml schema found in xsd files See e.g. https://www.w3schools.com/xml/schema_intro.asp * escape dots in urls --- lychee-lib/src/filter/mod.rs | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/lychee-lib/src/filter/mod.rs b/lychee-lib/src/filter/mod.rs index 0b04235..e30395b 100644 --- a/lychee-lib/src/filter/mod.rs +++ b/lychee-lib/src/filter/mod.rs @@ -41,14 +41,15 @@ static UNSUPPORTED_DOMAINS: LazyLock> = 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 =