From: Dobrica Pavlinusic Date: Tue, 10 May 2022 12:41:28 +0000 (+0200) Subject: support 09 and +3859 numbers X-Git-Url: http://git.rot13.org/?p=zc;a=commitdiff_plain;h=fc0309f79bdf73f1d51a3d5d4e41c2bb6ee40118;hp=8b4b5289d8edd7b8cd9fe6c0616ddbb972bb3a81 support 09 and +3859 numbers --- diff --git a/pg-listen-zc.pl b/pg-listen-zc.pl index eddbaa0..7557cf0 100755 --- a/pg-listen-zc.pl +++ b/pg-listen-zc.pl @@ -78,7 +78,7 @@ while (1) { while(<$cfg>) { chomp; my $email = $_; - my $number = $1 if $email =~ s{\s+0([0-9]+)$}{}; + my $number = $1 if $email =~ s{\s+(?:\+385|0)([0-9]+)$}{}; $number = '+385' . $number; print ts,"ALERT $email\n";