Skip to content

Commit 6a43f63

Browse files
author
himaniraghav3
committed
Codeql test
1 parent 4d24155 commit 6a43f63

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}(#?\/?(?:[a-zA-Z0-9#-]+))*\/?(\?[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)