From 4651453e86e3a0b7adf80e5906614efbed2b4ff8 Mon Sep 17 00:00:00 2001 From: fantasticit Date: Tue, 7 Jun 2022 16:32:29 +0800 Subject: [PATCH] tiptap: fix valid url --- packages/client/src/tiptap/prose-utils/url.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/client/src/tiptap/prose-utils/url.ts b/packages/client/src/tiptap/prose-utils/url.ts index e351802..0c0b984 100644 --- a/packages/client/src/tiptap/prose-utils/url.ts +++ b/packages/client/src/tiptap/prose-utils/url.ts @@ -1,3 +1,3 @@ export function isValidURL(str: string) { - return str.startsWith('http'); + return str && str.startsWith('http'); }