fix(linky): make urls starting with www. links, like markdown

It's super cool!

Closes #10290
This commit is contained in:
chasefleming
2014-12-01 17:33:53 -08:00
committed by Caitlin Potter
parent 8df47db72f
commit 915a891ad4
2 changed files with 9 additions and 3 deletions

View File

@@ -20,6 +20,10 @@ describe('linky', function() {
expect(linky(undefined)).not.toBeDefined();
});
it('should handle www.', function() {
expect(linky('www.example.com')).toEqual('<a href="http://www.example.com">www.example.com</a>');
});
it('should handle mailto:', function() {
expect(linky("mailto:me@example.com")).
toEqual('<a href="mailto:me@example.com">me@example.com</a>');