Skip to content

Instantly share code, notes, and snippets.

@joemccann
joemccann / linkify.js
Created May 27, 2011 15:11
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 m.link(m) }) };