equalizedigital / accessibility-checker

GNU General Public License v2.0
14 stars 8 forks source link

Tweak missing_transcript rule to try to avoid some false positives #530

Closed pattonwebz closed 5 months ago

pattonwebz commented 6 months ago

The missing transcript rule can detect a false positive when the URL of a site or domain contains one of the extensions it tries to match against. Eg: www.wma.com

This PR attempts to avoid those by shifting the check to match against only the EXTENSION of href values and not matching within the value. That might not be the right approach, but pushing this up as an early attempt will add more tests to validate it suits and doesn't break any existing content checking that should pass (or allow some that should fail).

Fixes: #511