mirror of https://github.com/fantasticit/think.git
tiptap: fix valid url
This commit is contained in:
parent
23bc07431c
commit
4651453e86
|
@ -1,3 +1,3 @@
|
|||
export function isValidURL(str: string) {
|
||||
return str.startsWith('http');
|
||||
return str && str.startsWith('http');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue