diff --git a/app/diagnostic_functions.php b/app/diagnostic_functions.php
index e5ace3b..a1461a6 100644
--- a/app/diagnostic_functions.php
+++ b/app/diagnostic_functions.php
@@ -940,13 +940,23 @@ function diagnostic_strip_legacy_report_cta(array $package): array
'
| ',
$html
);
+ $html = preg_replace(
+ '~~u',
+ '',
+ $html
+ ) ?? $html;
+ $html = preg_replace(
+ '~ DoktorBiznes(?:\.pl)? ~u',
+ '',
+ $html
+ ) ?? $html;
$html = preg_replace(
'~( |
| )(?:\s* ]*>\s* )*~u',
'$1' . diagnostic_email_brand_marker_html(),
$html,
1
) ?? $html;
- if (strpos($html, 'Przejdź do bloga DoktorBiznes.pl') === false) {
+ if (strpos($html, 'Przejdź do bloga DoktorBiznes.pl') === false && strpos($html, 'DoktorBiznes.pl') === false) {
$html = preg_replace(
'~( |
| )~u',
'$1' . diagnostic_email_brand_marker_html(),
|