Skip to content

Commit

Permalink
fon.pl: cleanup output
Browse files Browse the repository at this point in the history
- wipe
  • Loading branch information
wwwutz committed Apr 23, 2021
1 parent ca295db commit b85e770
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions fon/fon.pl
Original file line number Diff line number Diff line change
Expand Up @@ -75,17 +75,18 @@ sub push_entry {
push @{ $O{name} }, $t;
$l > ( $M{name} || 0 ) and $M{name} = $l;

$t = join( '/', @{ $e->{roomNumber} } );

$t = join( '/', map {s/\(.*?\)|Betriebsarztraum|\s+//g;$_} @{ $e->{roomNumber} } );
$l = len($t);
push @{ $O{room} }, $t;
$l > ( $M{room} || 0 ) and $M{room} = $l;

$t = join( '/', @{ $e->{telephoneNumber} } );
$t = join( '/', map {s/\(.*?\)|\s+//g;s/\+49/0/;$_} @{ $e->{telephoneNumber} } );
$l = len($t);
push @{ $O{fone} }, $t;
$l > ( $M{fone} || 0 ) and $M{fone} = $l;

$t = join( ', ', @{ $e->{mail} } );
$t = join( ', ', map {s/molgen\.mpg\.de//g;$_} @{ $e->{mail} } );
$l = len($t);
push @{ $O{mail} }, $t;
$l > ( $M{mail} || 0 ) and $M{mail} = $l;
Expand Down

0 comments on commit b85e770

Please sign in to comment.