Skip to content

Instantly share code, notes, and snippets.

@joemccann joemccann/linkify.js
Created May 27, 2011

What would you like to do?
Use of link method for linkifying tweets.
// Courtesy of @redwolves
String.prototype.linkify = function() { return this.replace(/[A-Za-z]+:\/\/[A-Za-z0-9-_]+\.[A-Za-z0-9-_:%&\?\/.=]+/, function(m) { return }) };

This comment has been minimized.

Copy link

commented May 27, 2011

I believe you are missing a '}' at the end of the line.


This comment has been minimized.

Copy link
Owner Author

commented May 27, 2011

Good catch...thx.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.