[Gridsquare Validation] when doing 6 char grids it errored
Regex stopped looking at chars after R
这个提交包含在:
父节点
951f1760fd
当前提交
9f774c8eac
共有 1 个文件被更改,包括 1 次插入 和 1 次删除
|
|
@ -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
|
||||
|
|
|
|||
正在加载…
在新工单中引用