59_GSI.pm: cosmetic fix in cvsid display

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@21380 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
herrmannj 2020-03-08 17:09:49 +00:00
parent 2cab287852
commit c09cbdc873

View File

@ -49,6 +49,8 @@ sub GSI_Define {
my ($name, $type, $plz) = split /\s/, $def;
my $cvsid = '$Id$';
$cvsid =~ s/^.*pm\s//;
$cvsid =~ s/Z\s\S+\s\$$//;
return "German ZIP code required" unless ($plz =~ m/\d{5}/);
$hash->{'ZIP'} = $plz;