Don't catch dangling /edit on google drive links

This commit is contained in:
calzoneman 2014-05-01 10:22:03 -05:00
parent d6d1cd4289
commit 842fd80e0e

View file

@ -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 { return {
id: m[1], id: m[1],
type: "gd" type: "gd"