tiptap: fix valid url

This commit is contained in:
fantasticit 2022-06-07 16:32:29 +08:00
parent 23bc07431c
commit 4651453e86
1 changed files with 1 additions and 1 deletions

View File

@ -1,3 +1,3 @@
export function isValidURL(str: string) {
return str.startsWith('http');
return str && str.startsWith('http');
}