From 0d6605544150200d634372eafd482e2b5f3c3f11 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Sat, 22 Jan 2022 08:41:51 -0800 Subject: [PATCH] fix: More lenient Lucidchart embed matcher closes #2017 --- shared/editor/embeds/Lucidchart.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shared/editor/embeds/Lucidchart.tsx b/shared/editor/embeds/Lucidchart.tsx index 03dcf0216..9313f48b0 100644 --- a/shared/editor/embeds/Lucidchart.tsx +++ b/shared/editor/embeds/Lucidchart.tsx @@ -4,8 +4,8 @@ import { EmbedProps as Props } from "."; export default class Lucidchart extends React.Component { static ENABLED = [ - /^https?:\/\/(www\.|app\.)?lucidchart.com\/documents\/(embeddedchart|view)\/(?[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})(?:\/.*)?$/, - /^https?:\/\/(www\.|app\.)?lucid.app\/lucidchart\/(?[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})\/(embeddedchart|view)(?:\/.*)?$/, + /^https?:\/\/(www\.|app\.)?lucidchart.com\/documents\/(embeddedchart|view|edit)\/(?[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})(?:.*)?$/, + /^https?:\/\/(www\.|app\.)?lucid.app\/lucidchart\/(?[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})\/(embeddedchart|view|edit)(?:.*)?$/, ]; render() {