bryanwoods/autolink-js — pull request #3 by mac2000 (2012-07-19 05:29:08+00:00)
Title: Avoid affecting existing html

Here is always fail test:

it "will not affect images", ->
expect("Image ".autoLink())
.toEqual("Image ")

The problem is in js regex weakness, we have no ability to use lookaheads, and `\b` thinks that `http://example.com/logo.png` in this example is starting of new word.

So my proposal is to look for space or start of string before link.

Added fixed code and few tests.