Allow links in Editor without http/https (#124)
This commit is contained in:
parent
aeba020390
commit
c647cf5a75
|
@ -1,3 +1,3 @@
|
|||
export const validateUrl = (value: string) => {
|
||||
return /^(http|https):\/\/[^ "]+$/.test(value)
|
||||
return /^((http|https):\/\/)?[^ "]+$/.test(value)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user