fix: Make GoogleDrive embed links more lenient

closes #2405
This commit is contained in:
Tom Moor
2021-08-30 22:43:13 -07:00
parent 4929fbaccb
commit 23a6459ae8
2 changed files with 1 additions and 18 deletions

View File

@@ -3,9 +3,7 @@ import * as React from "react";
import Image from "components/Image";
import Frame from "./components/Frame";
const URL_REGEX = new RegExp(
"^https?://drive.google.com/file/d/(.*)/(preview|view).?usp=sharing(.*)"
);
const URL_REGEX = new RegExp("^https?://drive.google.com/file/d/(.*)$");
type Props = {|
attrs: {|