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.
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
inavif
. I have created a helper that checks the extension matches the full extension and not just part of it.Fixes: #598