kopia lustrzana https://github.com/magicbug/Cloudlog
[Gridsquare Validation] when doing 6 char grids it errored
Regex stopped looking at chars after Rpull/1450/head
rodzic
951f1760fd
commit
9f774c8eac
|
@ -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
|
||||
|
|
Ładowanie…
Reference in New Issue