X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXUtil.pm;h=db1c4c7da9c952c2a8b6482dfc0c1a41669b8ea5;hb=0ee845aaebeeb0f5a7232021d9c633a0ef2fff80;hp=07e86cea4a7d5254d8415c49ddecd23f94d3b078;hpb=f21f292746ef4a2edc703e48542d1ed2d85d14cd;p=spider.git diff --git a/perl/DXUtil.pm b/perl/DXUtil.pm index 07e86cea..db1c4c7d 100644 --- a/perl/DXUtil.pm +++ b/perl/DXUtil.pm @@ -313,7 +313,7 @@ sub unpad # check that a field only has callsign characters in it sub is_callsign { - return $_[0] =~ /^[A-Z0-9\-]+$/; + return $_[0] =~ /^(?:[A-Z]{1,2}\d+|\d[A-Z]\d+)[A-Z0-9\/\-]+$/; } # check that a PC protocol field is valid text