equalizedigital / accessibility-checker

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

Fix: Don't flag .avif as missing trascript or video present #695

Open pattonwebz opened 1 week ago

pattonwebz commented 1 week ago

This PR adjusts how file extensions are checked in some rules so that avif does not get checked by them since it is not a video.

The reason this was happening was due to the way file extensions were being checked. They were matching avi in avif. I have created a helper that checks the extension matches the full extension and not just part of it.

Fixes: #598