switch order of auto-linking

This commit is contained in:
danielgrippi 2012-01-07 21:19:13 -08:00
parent 07d81e0a85
commit a899e71ce5
2 changed files with 5 additions and 5 deletions

View file

@ -8,9 +8,9 @@ app.views.Content = app.views.StreamObject.extend({
function metafyText(text) {
//we want it to return at least a <p> from markdown
text = text || ""
return mentionify(
hashtagify(
urlify(
return urlify(
mentionify(
hashtagify(
markdownify(text)
)
)

View file

@ -131,8 +131,8 @@ describe("app.views.Post", function(){
links = ["http://google.com",
"https://joindiaspora.com",
"http://www.yahooligans.com",
"obama.com",
"japan.co.jp"]
"http://obama.com",
"http://japan.co.jp"]
this.statusMessage.set({text : links.join(" ")})
var view = new app.views.Post({model : this.statusMessage}).render();