switch order of auto-linking
This commit is contained in:
parent
07d81e0a85
commit
a899e71ce5
2 changed files with 5 additions and 5 deletions
|
|
@ -8,9 +8,9 @@ app.views.Content = app.views.StreamObject.extend({
|
||||||
function metafyText(text) {
|
function metafyText(text) {
|
||||||
//we want it to return at least a <p> from markdown
|
//we want it to return at least a <p> from markdown
|
||||||
text = text || ""
|
text = text || ""
|
||||||
return mentionify(
|
return urlify(
|
||||||
|
mentionify(
|
||||||
hashtagify(
|
hashtagify(
|
||||||
urlify(
|
|
||||||
markdownify(text)
|
markdownify(text)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -131,8 +131,8 @@ describe("app.views.Post", function(){
|
||||||
links = ["http://google.com",
|
links = ["http://google.com",
|
||||||
"https://joindiaspora.com",
|
"https://joindiaspora.com",
|
||||||
"http://www.yahooligans.com",
|
"http://www.yahooligans.com",
|
||||||
"obama.com",
|
"http://obama.com",
|
||||||
"japan.co.jp"]
|
"http://japan.co.jp"]
|
||||||
|
|
||||||
this.statusMessage.set({text : links.join(" ")})
|
this.statusMessage.set({text : links.join(" ")})
|
||||||
var view = new app.views.Post({model : this.statusMessage}).render();
|
var view = new app.views.Post({model : this.statusMessage}).render();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue