Displaying 1 result from an estimated 1 matches for "image_re".
Did you mean:
image_bo
2006 Aug 29
0
Several bug-fixes and improvements(?)
...(
([\w]+[=?&:%\/\.\~\-]*)* # url segment
\w+[\/]? # url tail
(?:\#\w*)? # trailing anchor
)
([[:punct:]]|\s|<|$) # trailing text
/x
The IMAGE_RE regular expression also has a bug, where it matches any
character (.) for the start of a line. I replaced this with any whitespace.
Also, I made it so that the URL for a link *must* have a . in it:
IMAGE_RE = /
(\<p\>|\s|^) # start of line?
\!...