From 39e53b4ae7b958b227535dde7e8284f5d92a96fd Mon Sep 17 00:00:00 2001 From: Lipis Date: Sun, 7 Nov 2021 15:37:13 +0200 Subject: [PATCH] feat: Allow letters in IDs for storing files in backend (#4224) --- src/excalidraw-app/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/excalidraw-app/index.tsx b/src/excalidraw-app/index.tsx index 98c4b64e..915e386d 100644 --- a/src/excalidraw-app/index.tsx +++ b/src/excalidraw-app/index.tsx @@ -163,7 +163,7 @@ const initializeScene = async (opts: { const searchParams = new URLSearchParams(window.location.search); const id = searchParams.get("id"); const jsonBackendMatch = window.location.hash.match( - /^#json=([0-9]+),([a-zA-Z0-9_-]+)$/, + /^#json=([a-zA-Z0-9_-]+),([a-zA-Z0-9_-]+)$/, ); const externalUrlMatch = window.location.hash.match(/^#url=(.*)$/);