mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-01-12 22:45:52 +08:00
fix(linky): make urls starting with www. links, like markdown
It's super cool! Closes #10290
This commit is contained in:
committed by
Caitlin Potter
parent
8df47db72f
commit
915a891ad4
@@ -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>');
|
||||
|
||||
Reference in New Issue
Block a user