Nice module. If I knew how to create a patch, I would, but here's the small change that's needed:

To avoid replacing text in existing links, one line in alinks.module looks like this:
preg_match_all('/\<a\s.*?\>(.*?)\<\/a\>/', $body, $linka);

Please make this case-insensitive, as follows (added the "i" at the end of the regex):
preg_match_all('/\<a\s.*?\>(.*?)\<\/a\>/i', $body, $linka);

That way, links that look like this <A ...>...</A> are also skipped during replacement.

Thanks.

Comments

greg boggs’s picture

Fixed in 7.x dev

greg boggs’s picture

Version: 6.x-1.0-rc1 » 7.x-1.x-dev
Assigned: Unassigned » greg boggs
Issue summary: View changes
Status: Active » Closed (fixed)