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
This commit is contained in:
tooomm 2025-06-20 15:38:49 +02:00 committed by GitHub
parent d1c651a469
commit 83fe1248c4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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> =