diff --git a/lib/constants.ts b/lib/constants.ts index 9753a8d4..209a97b6 100644 --- a/lib/constants.ts +++ b/lib/constants.ts @@ -166,8 +166,9 @@ export const EVENT_COLORS = [ '#ffec16', ]; -export const DOMAIN_REGEX = - /^(localhost(:[1-9]\d{0,4})?|((?=[a-z0-9-]{1,63}\.)(xn--)?[a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,63})$/; +export const DOMAIN_REGEX = + /^(localhost(:[1-9]\d{0,4})?|((?=[a-z0-9-]{1,63}\.)(xn--)?[a-z0-9-]+(-[a-z0-9-]+)*\.)+(xn--)?[a-z0-9-]{2,63})$/; + export const SHARE_ID_REGEX = /^[a-zA-Z0-9]{16}$/; diff --git a/package.json b/package.json index c965e77c..59bd4e36 100644 --- a/package.json +++ b/package.json @@ -105,7 +105,7 @@ "react-use-measure": "^2.0.4", "react-window": "^1.8.6", "request-ip": "^3.3.0", - "semver": "^7.3.6", + "semver": "^7.5.2", "thenby": "^1.3.4", "timezone-support": "^2.0.2", "uuid": "^8.3.2",