• Hi there! I guess there is a little bug in plugin. I made link with text “https://doctor92.ru” then plugin had rendered icon near it. It isn’t an attached document just website.
    So I researched this issue and it seems the regex creating icons should be improved.

    line 528:
    actual: $pattern = ‘/.’ . $ext . ‘/i’;
    modified: $pattern = ‘/^.*\.’ . $ext . ‘$/i’;

    So, of course you know your plugin better then me, but it’s just a litte offer how to make hotfix.
    What did I do? I marked the beginning of the phrase using ^ symbol and added .(dot) before file ext and $ in the end.
    Maybe I created another bugs, I don’t know.
    And thanks for this plugin it’s very useful for me)

  • The topic ‘[Plugin: Attachment File Icons (AF Icons)] minor bug, icon extra rendering’ is closed to new replies.