Allow 10-digit grids

This commit is contained in:
phl0
2025-05-04 09:12:10 +02:00
parent 83c6a2121c
commit 733dc373aa

View File

@@ -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;
}
}