projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
made ssids unique everywhere
[spider.git]
/
perl
/
DXUtil.pm
diff --git
a/perl/DXUtil.pm
b/perl/DXUtil.pm
index ac2b63e42a282212f79a8627e04468dca957f115..caaa38008b18928ad4435612ed84357ce67b965b 100644
(file)
--- 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
{
# 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;
}
return undef;
}