mirror of
https://github.com/Hopiu/lychee.git
synced 2026-03-16 20:50:25 +00:00
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:
parent
d1c651a469
commit
83fe1248c4
1 changed files with 9 additions and 8 deletions
|
|
@ -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> =
|
||||
|
|
|
|||
Loading…
Reference in a new issue