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}$/;