diff --git a/src/modules/utils/validateUrl.ts b/src/modules/utils/validateUrl.ts index 09efa41..fb99354 100644 --- a/src/modules/utils/validateUrl.ts +++ b/src/modules/utils/validateUrl.ts @@ -26,7 +26,7 @@ export const isValidUrl = (url: string): boolean => { try { const parsedUrl = new URL(url); // check for presence of a dot - return parsedUrl.hostname.includes("."); + return parsedUrl.hostname } catch (error) { return false; }