From 9043b3ce60d73411253723d484a199b73e68be50 Mon Sep 17 00:00:00 2001 From: Carlos Valente Date: Mon, 6 Jan 2025 19:54:34 +0100 Subject: [PATCH] refactor: allow both http and https --- apps/client/src/common/utils/regex.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/client/src/common/utils/regex.ts b/apps/client/src/common/utils/regex.ts index 3f4848350b..c34d2ed294 100644 --- a/apps/client/src/common/utils/regex.ts +++ b/apps/client/src/common/utils/regex.ts @@ -5,7 +5,7 @@ export const isOnlyNumbers = /^\d+$/; export const isIPAddress = /^((25[0-5]|(2[0-4]|1\d|[1-9]|)\d)\.?\b){4}$/; -export const startsWithHttp = /^http:\/\//; +export const startsWithHttp = /^https?:\/\//; export const startsWithSlash = /^\//; export const isAlphanumeric = /^[a-z0-9]+$/i; export const isASCII = /^[ -~]+$/; //https://catonmat.net/my-favorite-regex