From 1be466efcd4bcf85d99e6bec21bc807484af4847 Mon Sep 17 00:00:00 2001 From: Mir Arif Hasan Date: Thu, 4 Jan 2024 19:00:37 +0600 Subject: [PATCH] fix: code scanning issue --- packages/hoppscotch-backend/src/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/hoppscotch-backend/src/utils.ts b/packages/hoppscotch-backend/src/utils.ts index a822c7e03..7e9e0013a 100644 --- a/packages/hoppscotch-backend/src/utils.ts +++ b/packages/hoppscotch-backend/src/utils.ts @@ -189,7 +189,7 @@ export const validateSMTPUrl = (url: string) => { * @returns boolean */ export const validateUrl = (url: string) => { - const urlRegex = /^(https?):\/\/(-\.)?([^\s\/?\.#-]+\.?)+(\/[^\s]*)?$/i; + const urlRegex = /^(https?):\/\/(-\.)?([^\s\/?\.#-]+\.?)+(\/[^\s]*)?$/; return urlRegex.test(url); };