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.
2 parents ffaa101 + 374be0c commit c7d59d7Copy full SHA for c7d59d7
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.)?[a-z0-9]+(\.[a-z]{2,}){1,3}(#?\/?(?:[a-zA-Z0-9#]+))*\/?(\?[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