diff --git a/allure-generator/src/main/javascript/helpers/text-with-links.js b/allure-generator/src/main/javascript/helpers/text-with-links.js index a3e8462ff..e074a483a 100644 --- a/allure-generator/src/main/javascript/helpers/text-with-links.js +++ b/allure-generator/src/main/javascript/helpers/text-with-links.js @@ -1,6 +1,6 @@ import { SafeString } from "handlebars/runtime"; -const URL_REGEXP = /((?:(https?:\/\/|ftp:\/\/)|(?:(?:[0-9]{1,3}\.){3}[0-9]{1,3}|www\.?))\S+?)(\s|"|'|\)|]|$)/gm; +const URL_REGEXP = /((?:(https?:\/\/|ftp:\/\/|mailto:)|www\.)\S+?)(\s|"|'|\)|]|}|>|$)/gm; const encodeHTMLEntities = (rawString) => rawString.replace(/[\u00A0-\u9999<>&]/gim, (i) => `&#${i.charCodeAt(0)};`);