Topic: [Extension] sva_Link_To_Image

Extension Link to image

GitHub: https://github.com/MioVisman/punbb_exte … k_to_image

Converts links ending in .jpeg, .jpg, .gif, or .png to [ img ] bb-code. If they are framed by any bb-codes, the conversion will not be performed.

At the moment, for highlighting links to pictures, a fairly simple regularity is used:

\b(?<!\])(https?://[^\[\]\s]++)(?=$|\[|\]|\s)(?!\[/(?:img|url)\])(?<=\.jpeg|\.jpg|\.gif|\.png)

Test. Based on the results of your tests, I will make changes.

ForkBB
I speak only Russian  :P

Re: [Extension] sva_Link_To_Image

v 0.9.1
fix regexp

ForkBB
I speak only Russian  :P

Re: [Extension] sva_Link_To_Image

v 0.9.2
Add .webp support.

ForkBB
I speak only Russian  :P