Skip to content

Commit 2123cde

Browse files
committed
Fix liner warning
1 parent 34eda3b commit 2123cde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/companies/CompanyInputs.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import ImageEditorField from '../misc/ImageEditorField';
2323
const isUrl = (url: string) => {
2424
if (!url) return;
2525
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
26+
/^(http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)?[a-z0-9]+([-.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?$/i
2727
);
2828
if (!UrlRegex.test(url)) {
2929
return 'Must be a valid URL';

0 commit comments

Comments
 (0)