test: Google embeds (#1202)

Update slides to only embed pub links
This commit is contained in:
Tom Moor
2020-03-07 10:10:26 -08:00
committed by GitHub
parent 533ec3bd9c
commit 4baf5ce99a
4 changed files with 91 additions and 1 deletions

View File

@@ -2,7 +2,9 @@
import * as React from 'react';
import Frame from './components/Frame';
const URL_REGEX = new RegExp('^https?://docs.google.com/presentation/d/(.*)$');
const URL_REGEX = new RegExp(
'^https?://docs.google.com/presentation/d/(.*)/pub(.*)$'
);
type Props = {
url: string,