This website requires JavaScript.
Explore
Help
Sign In
discours.io
/
webapp
Watch
5
Star
0
Fork
0
You've already forked webapp
Code
Issues
Pull Requests
Actions
Projects
Wiki
Activity
b059f1024e
webapp
/
src
/
utils
/
validateUrl.ts
4 lines
102 B
TypeScript
Raw
Normal View
History
Unescape
Escape
fixed lint validation, chores, lint, safe lib updates
2023-05-09 23:15:26 +00:00
export
const
validateUrl
=
(
value
:
string
)
=
>
{
Allow links in Editor without http/https (#124)
2023-07-17 19:11:14 +00:00
return
/^((http|https):\/\/)?[^ "]+$/
.
test
(
value
)
Validation message
2022-12-07 08:37:40 +00:00
}
Reference in New Issue
Copy Permalink