From 842fd80e0e19ec8aff2bc7cbbeb72f9f8c4d113d Mon Sep 17 00:00:00 2001 From: calzoneman Date: Thu, 1 May 2014 10:22:03 -0500 Subject: [PATCH] Don't catch dangling /edit on google drive links --- www/js/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/js/util.js b/www/js/util.js index 9d79cefe..7ce55028 100644 --- a/www/js/util.js +++ b/www/js/util.js @@ -1259,7 +1259,7 @@ function parseMediaLink(url) { }; } - if ((m = url.match(/docs\.google\.com\/file\/d\/(.*)(\/edit)?/))) { + if ((m = url.match(/docs\.google\.com\/file\/d\/([^\/]*)/))) { return { id: m[1], type: "gd"