mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Fix for A45/0 callsigns
This commit is contained in:
@@ -269,7 +269,7 @@ class Dxcc {
|
||||
]);
|
||||
return '';
|
||||
}
|
||||
if (preg_match('/^([A-Z]\d)\d$/', $matches[1])) { # e.g. A45 $c = 0
|
||||
if (preg_match('/^([A-Z]\d{2,})$/', $matches[1])) { # e.g. A45 $c = 0
|
||||
$prefix = $matches[1] . $c; # -> A40
|
||||
} else { # Otherwise cut all numbers
|
||||
if (!preg_match('/(.*[A-Z])\d+/', $matches[1], $match)) {
|
||||
|
||||
Reference in New Issue
Block a user