We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d24155 commit 6a43f63Copy full SHA for 6a43f63
src/util/validation.js
@@ -58,7 +58,7 @@ export const taaSProjectFormValidationSchema = Yup.object({
58
/**
59
* regex for url validation
60
*/
61
-const urlRegex = /((https?):\/\/)?(www.)?[\w-]+(\.[a-z]{2,}){1,3}(#?\/?(?:[\w-#]+))*\/?(\?[a-zA-Z0-9-_]+=[a-zA-Z0-9-%]+&?)?$/
+const urlRegex = /((https?):\/\/)?(www\.)?[\w-]+(\.[a-z]{2,}){1,3}(#?\/?(?:[a-zA-Z0-9#-]+))*\/?(\?[a-zA-Z0-9-_]+=[a-zA-Z0-9-%]+&?)?$/
62
63
64
* validation schema for add link form in assets library
0 commit comments