Don't catch dangling /edit on google drive links
This commit is contained in:
parent
d6d1cd4289
commit
842fd80e0e
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue