[ Launch: specialty list ] 11552788 by hartzis
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var parseTweet = function(tweetText) { | |
var reghash, reguri, regusername; | |
reguri = /(https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&\/=]*))/g; | |
regusername = /([@]+([A-Za-z0-9-_]+))/g; | |
reghash = /[#]+([A-Za-z0-9-_]+)/g; | |
tweetText = tweetText.replace(reguri, "<a href='$1' target='_blank'>$1</a>"); | |
tweetText = tweetText.replace(regusername, "<a href='http://twitter.com/$2' target='_blank'>$1</a>"); | |
tweetText = tweetText.replace(reghash, "<a href='http://twitter.com/search?q=%23$1' target='_blank'>#$1</a>"); | |
return tweetText; | |
}; |
[ Launch: front range polymap ] 11292469 by hartzis
[ Launch: front range map test ] 11218266 by hartzis
[ Launch: ] 11154514 by hartzis[ Launch: Tributary inlet ] 10932495 by ekimed
[ Launch: CMPD-dot-line-graph ] 10801205 by hartzis
NewerOlder