From 733dc373aa63c438ec2e0e3ceb2c3c99e7d8dccd Mon Sep 17 00:00:00 2001 From: phl0 Date: Sun, 4 May 2025 09:12:10 +0200 Subject: [PATCH] Allow 10-digit grids --- application/libraries/Qra.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/application/libraries/Qra.php b/application/libraries/Qra.php index 584a73aa4..c7c63063f 100644 --- a/application/libraries/Qra.php +++ b/application/libraries/Qra.php @@ -213,6 +213,8 @@ class Qra { else if (preg_match('/^[A-Ra-r]{2}$/', $grid)) return true; // Allow 8-digit locator else if (preg_match('/^[A-Ra-r]{2}[0-9]{2}[A-Za-z]{2}[0-9]{2}$/', $grid)) return true; + // Allow 10-digit locator + else if (preg_match('/^[A-Ra-r]{2}[0-9]{2}[A-Za-z]{2}[0-9]{2}[A-Za-z]{2}$/', $grid)) return true; return false; } }