undef , # pc20 no validation
[ qw(c m h) ], # pc21
undef , # pc22 no validation
- [ qw(d t n n n m c c h) ], # pc23
+ [ qw(d n n n n m c c h) ], # pc23
[ qw(c p h) ], # pc24
[ qw(c c n n) ], # pc25
- [ qw(f c m d t c c) ], # pc26
- [ qw(d t n n n m c c) ], # pc27
- [ qw(c c c c d t p m bp n p bp c) ], # pc28
+ [ qw(f m d t m c c) ], # pc26
+ [ qw(d n n n n m c c) ], # pc27
+ [ qw(c c c c d t p m bp n p bp bc) ], # pc28
[ qw(c c n m) ], # pc29
[ qw(c c n) ], # pc30
[ qw(c c n) ], # pc31
undef, # pc70
undef,
undef,
- [ qw(d n n n n n n n m m m c c) ], # pc73
+ [ qw(d n n n n n n m m m c c h) ], # pc73
undef,
undef,
undef,
shift; # not interested in the first field
for ($i = 0; $i < @_; $i++) {
my ($blank, $act) = $$ref[$i] =~ /^(b?)(\w)$/;
- next if $blank && $_[$i] eq ' ';
+ next if $blank && $_[$i] =~ /^[ \*]$/;
if ($act eq 'c') {
return $i+1 unless is_callsign($_[$i]);
} elsif ($act eq 'm') {
# check that a PC protocol field is valid text
sub is_pctext
{
- return $_[0] =~ /^[\x09\x20-\xA8\xE0-\xEF]+$/;
+ return $_[0] =~ /^[\x09\x20-\xFF]+$/;
}
# check that a PC prot flag is fairly valid (doesn't check the difference between 1/0 and */-)