alexdunae/premailer — pull request #132 by kimdouglasmason (2012-08-01 22:16:35+00:00)
Title: resolve_link handles HTML with embedded URI

When premailer was provided with a HTML string, resolve_link was choking
if the HTML contained a link on a single line. This is because
resolve_link and local_data? were both matching their URL regexp against
start of line instead of start of string to determine if the string was
a URL.

In general, \A provides the strictest match, and ^ is rarely needed.