webapp/src/utils/validateUrl.ts
Ilya Y f86108ba20
add protocol to link without it (#132)
* add protocol to link without it

* refactoing

* refactoring

* refactoring
2023-07-18 13:21:26 +02:00

4 lines
103 B
TypeScript

export const validateUrl = (value: string) => {
return value.includes('.') && !value.includes(' ')
}