From ee6fc18703b5004adb370e50f4397d5430271032 Mon Sep 17 00:00:00 2001 From: Maxwell Salzberg Date: Thu, 12 Jan 2012 17:25:01 -0800 Subject: [PATCH] fix oembed specs by allowing ; in auto link on client side" --- public/javascripts/app/views/content_view.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/javascripts/app/views/content_view.js b/public/javascripts/app/views/content_view.js index c4a25691d..fee5cb09d 100644 --- a/public/javascripts/app/views/content_view.js +++ b/public/javascripts/app/views/content_view.js @@ -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://" : "")