fix oembed specs by allowing ; in auto link on client side"
This commit is contained in:
parent
258d55df51
commit
ee6fc18703
1 changed files with 1 additions and 1 deletions
|
|
@ -41,7 +41,7 @@ app.views.Content = app.views.StreamObject.extend({
|
|||
}
|
||||
|
||||
function urlify(text) {
|
||||
var urlRegex = /(=\s?'|=\s?")?[-a-zA-Z0-9@:%_\+.~#?&//=]{2,256}\.[a-z]{2,4}\b(\/[-a-zA-Z0-9@:%_\+.~#?(#!)&//=]*)?/gi
|
||||
var urlRegex = /(=\s?'|=\s?")?[-a-zA-Z0-9@:%_\+.~#?&//=]{2,256}\.[a-z]{2,4}\b(\/[-a-zA-Z0-9@:%_\+.~#?(#!)&//=;]*)?/gi
|
||||
return text.replace(urlRegex, function(url, preceeder, bang) {
|
||||
if(preceeder) return url
|
||||
var protocol = (url.search(/:\/\//) == -1 ? "http://" : "")
|
||||
|
|
|
|||
Loading…
Reference in a new issue