Accept drive.google.com/file/d/blah as a substitute for docs.google.com/file/d/blah

This commit is contained in:
calzoneman 2014-09-02 16:50:26 -05:00
parent ea9fa0a95a
commit 293f943a9a

View file

@ -1276,7 +1276,7 @@ function parseMediaLink(url) {
}; };
} }
if ((m = url.match(/docs\.google\.com\/file\/d\/([^\/]*)/))) { if ((m = url.match(/(?:docs|drive)\.google\.com\/file\/d\/([^\/]*)/))) {
return { return {
id: m[1], id: m[1],
type: "gd" type: "gd"