fixed urlify
This commit is contained in:
parent
a70306da82
commit
348725476b
1 changed files with 2 additions and 2 deletions
|
@ -64,8 +64,8 @@ String.prototype.capitalize = function() {
|
||||||
}
|
}
|
||||||
|
|
||||||
String.prototype.urlify = function() {
|
String.prototype.urlify = function() {
|
||||||
var exp = /^\>(\b(http):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig;
|
var exp = /[^\>](https?:\/\/[^\s\<]*)/ig;
|
||||||
return this.replace(exp,"<a href='$1'>$1</a>");
|
return this.replace(exp," <a href='$1'>$1</a>");
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!window.app) window.app = new App();
|
if(!window.app) window.app = new App();
|
||||||
|
|
Reference in a new issue