X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXUtil.pm;h=caaa38008b18928ad4435612ed84357ce67b965b;hb=7de34899527cbc4dfacdcc6452926b3d2d73792c;hp=ac2b63e42a282212f79a8627e04468dca957f115;hpb=88c2b296ba903fdd356e351b83fcb844e2d6eacd;p=spider.git diff --git a/perl/DXUtil.pm b/perl/DXUtil.pm index ac2b63e4..caaa3800 100644 --- a/perl/DXUtil.pm +++ b/perl/DXUtil.pm @@ -191,9 +191,9 @@ sub shellregex # start an attempt at determining whether this string might be a callsign sub iscallsign { - my $call = shift; - return 1 if $call =~ /^\w+\d+/; - return 1 if $call =~ /^\d+\w+/; + my $call = uc shift; + return 1 if $call =~ /^[A-Z]+\d+[A-Z]+/; + return 1 if $call =~ /^\d+[A-Z]\d+[A-Z]+/; return undef; }