bb-ruby icon indicating copy to clipboard operation
bb-ruby copied to clipboard

Broken links (www.example.com)

Open thomasba opened this issue 13 years ago • 1 comments

Automated detected links beginning with www are missing the http://. Example:

Test www.example.com Test

will produce this:

Test <a href="www.example.com">www.example.com</a>

This would be correct:

Test <a href="http://www.example.com">www.example.com</a>

The Problem is in lib/bb-ruby.rb line 147 and following. Its one Regex for links with and without the leading http(s)

thomasba avatar Oct 17 '13 19:10 thomasba

Not sure this is a bug, as we are simply mimicking the original source material, but I see no reason why we can't clean up the source in this case.

Can you submit a pull request with a patch and test cases and I'll yank it in and issue a new build.

Thanks

cpjolicoeur avatar Oct 17 '13 20:10 cpjolicoeur