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 34eda3b commit 2123cdeCopy full SHA for 2123cde
src/companies/CompanyInputs.tsx
@@ -23,7 +23,7 @@ import ImageEditorField from '../misc/ImageEditorField';
23
const isUrl = (url: string) => {
24
if (!url) return;
25
const UrlRegex = new RegExp(
26
- /^(http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)?[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?$/i
+ /^(http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)?[a-z0-9]+([-.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?$/i
27
);
28
if (!UrlRegex.test(url)) {
29
return 'Must be a valid URL';
0 commit comments