Commit ee6fc187 authored by Maxwell Salzberg's avatar Maxwell Salzberg

fix oembed specs by allowing ; in auto link on client side"

parent 258d55df
......@@ -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://" : "")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment