[Gridsquare Validation] when doing 6 char grids it errored

Regex stopped looking at chars after R
pull/1450/head
Peter Goodhall 2022-04-01 16:04:06 +01:00
rodzic 951f1760fd
commit 9f774c8eac
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -450,7 +450,7 @@ class QSO extends CI_Controller {
// Allow empty locator
if (preg_match('/^$/', $grid)) return true;
// Allow 6-digit locator
if (preg_match('/^[A-Ra-r]{2}[0-9]{2}[A-Ra-r]{2}$/', $grid)) return true;
if (preg_match('/^[A-Ra-r]{2}[0-9]{2}[A-Za-z]{2}$/', $grid)) return true;
// Allow 4-digit locator
else if (preg_match('/^[A-Ra-r]{2}[0-9]{2}$/', $grid)) return true;
// Allow 4-digit grid line