On one page, there are links pointing to images.
<a class="native-class" href="http://localhost/test/wp-content/uploads/2017/10/7-3.jpg"></a>
I'm aware that I could add another class using the native-class
class but what I want to do is add another class to that specific link if the href is an image. .png, jpg, gif
etc.