fix: url regex update
This commit is contained in:
committed by
Andrew Bastin
parent
1be466efcd
commit
2ba79a043b
@@ -189,7 +189,7 @@ export const validateSMTPUrl = (url: string) => {
|
||||
* @returns boolean
|
||||
*/
|
||||
export const validateUrl = (url: string) => {
|
||||
const urlRegex = /^(https?):\/\/(-\.)?([^\s\/?\.#-]+\.?)+(\/[^\s]*)?$/;
|
||||
const urlRegex = /^(http|https):\/\/[^ "]+$/;
|
||||
return urlRegex.test(url);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user