From 04d4cb6d5243624a9a1bd13f068bb4a97036e508 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Wed, 13 Dec 2023 19:21:19 -0500 Subject: [PATCH] fix: New Airtable url format does not embed correctly. closes #6095 --- shared/editor/embeds/Airtable.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/shared/editor/embeds/Airtable.tsx b/shared/editor/embeds/Airtable.tsx index 9dcf99b23..d77409bd5 100644 --- a/shared/editor/embeds/Airtable.tsx +++ b/shared/editor/embeds/Airtable.tsx @@ -3,16 +3,18 @@ import Frame from "../components/Frame"; import { EmbedProps as Props } from "."; const URL_REGEX = new RegExp( - "^https://airtable.com/(?:app.*/)?(?:embed/)?(shr.*)$" + "^https://airtable.com/(?:embed/)?(app.*/)?(shr.*)$" ); function Airtable(props: Props) { const { matches } = props.attrs; - const shareId = matches[1]; + const appId = matches[1]; + const shareId = matches[2]; + return (