Skip to content

Commit 4d24155

Browse files
author
himaniraghav3
committed
Redo the fix with minimal change
1 parent a70e1a5 commit 4d24155

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/validation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export const taaSProjectFormValidationSchema = Yup.object({
5858
/**
5959
* regex for url validation
6060
*/
61-
const urlRegex = /((https?):\/\/)?(www\.)?[\w-]+(\.[a-z]{2,}){1,3}(#?\/?([\w\-._~:/?#[\]@!$&'()*+,;=]+)*)?\/?(\?[a-zA-Z0-9\-_=]+(&[a-zA-Z0-9\-_=]+)*)?$/
61+
const urlRegex = /((https?):\/\/)?(www.)?[\w-]+(\.[a-z]{2,}){1,3}(#?\/?(?:[\w-#]+))*\/?(\?[a-zA-Z0-9-_]+=[a-zA-Z0-9-%]+&?)?$/
6262

6363
/**
6464
* validation schema for add link form in assets library

0 commit comments

Comments
 (0)