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.

Parserus, UserAgentAnalyzer.
I speak only Russian  :P

Re: [Extension] sva_Link_To_Image

v 0.9.1
fix regexp

Parserus, UserAgentAnalyzer.
I speak only Russian  :P