mirror of https://github.com/calzoneman/sync.git
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 {
|
return {
|
||||||
id: m[1],
|
id: m[1],
|
||||||
type: "gd"
|
type: "gd"
|
||||||
|
|
Loading…
Reference in New Issue