Skip to content

Exclude more false positive schema domains#376

Merged
mre merged 1 commit intomasterfrom
more-false-positives
Oct 31, 2021
Merged

Exclude more false positive schema domains#376
mre merged 1 commit intomasterfrom
more-false-positives

Conversation

@mre
Copy link
Copy Markdown
Member

@mre mre commented Oct 31, 2021

/// `Include` pattern, which will match on a false positive
pub fn is_false_positive(input: &str) -> bool {
input == FALSE_POSITIVE_PAT[0]
FALSE_POSITIVE_PAT.iter().any(|pat| input.starts_with(pat))
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I guess that the input was compared only to the first array entry is the reason why the SVG namespace URL was still checked: #359 (comment)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Haha yeah. I think you're right. 😆

@mre mre merged commit 69e5d56 into master Oct 31, 2021
@mre mre deleted the more-false-positives branch October 31, 2021 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants