From c7e7b76cecb0ba14666ebf55dd665809a6df9612 Mon Sep 17 00:00:00 2001 From: Ildar Kamalov Date: Fri, 24 Jul 2020 18:42:49 +0300 Subject: [PATCH] - client: fix escape --- client/src/helpers/constants.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/helpers/constants.js b/client/src/helpers/constants.js index ea962ccb..2856b156 100644 --- a/client/src/helpers/constants.js +++ b/client/src/helpers/constants.js @@ -1,7 +1,7 @@ export const R_URL_REQUIRES_PROTOCOL = /^https?:\/\/[^/\s]+(\/.*)?$/; // matches hostname or *.wildcard -export const R_HOST = /^(\*\.)?[\w\.\-]+$/; +export const R_HOST = /^(\*\.)?[\w.-]+$/; export const R_IPV4 = /^(?:(?:^|\.)(?:2(?:5[0-5]|[0-4]\d)|1?\d?\d)){4}$/;