diff --git a/src/utils/validators.js b/src/utils/validators.js index fec834c38..f888555c7 100644 --- a/src/utils/validators.js +++ b/src/utils/validators.js @@ -16,7 +16,7 @@ const PERMALINK_REGEX = "^((/([a-zA-Z0-9]+-)*[a-zA-Z0-9]+)+)/?$" export const URL_REGEX_PREFIX = "^(https://)?(www.)?(" export const URL_REGEX_SUFFIX = ".com/)([a-zA-Z0-9_-]+([/.])?)+$" export const YOUTUBE_REGEX = ".com/(@)?)([a-zA-Z0-9_-]+([/.])?)+$" -export const TELEGRAM_REGEX = "telegram|t).me/([a-zA-Z0-9_-]+([/.])?)+$" +export const TELEGRAM_REGEX = "telegram|t).me/\\+?([a-zA-Z0-9_-]+([/.])?)+$" export const TIKTOK_REGEX = ".com/@)([a-zA-Z0-9_-]+([/.])?)+$" // Linkedin doesn't seem to restrict special characters export const LINKEDIN_REGEX = ".com/).+$"