From ec7939eb960f1cae48abcf2349eec2a7c1ac96ae Mon Sep 17 00:00:00 2001 From: pezcurrel Date: Sat, 23 Mar 2024 07:32:24 +0100 Subject: [PATCH] Adapted the regexp detecting entries to the new list format on fedipact.online --- web/clitools/fedipact.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/clitools/fedipact.php b/web/clitools/fedipact.php index a7d3770..5a139ee 100755 --- a/web/clitools/fedipact.php +++ b/web/clitools/fedipact.php @@ -57,7 +57,8 @@ $cont=@file($opts['url'],FILE_IGNORE_NEW_LINES|FILE_SKIP_EMPTY_LINES); if (is_array($cont)) { $doms=[]; foreach ($cont as $line) - if (preg_match('#
  • \s*🖤\s*[a-z0-9\.\-\_]+@([a-z0-9\.\-\_]+)\s*
  • #iu',$line,$matches)===1) +// if (preg_match('#
  • \s*🖤\s*[a-z0-9\.\-\_]+@([a-z0-9\.\-\_]+)\s*
  • #iu',$line,$matches)===1) + if (preg_match('#
  • \s*[a-z0-9\.\-\_]+@([a-z0-9\.\-\_]+)\s*
  • #iu',$line,$matches)===1) if (!in_array($matches[1],$doms)) $doms[]=mb_strtolower($matches[1]); $cdoms=count($doms);