Use all caps for Maindenhead Locators

This commit is contained in:
Bill Somerville 2019-06-07 23:48:21 +01:00
parent ef21239a9b
commit 53cb410b8e
No known key found for this signature in database
GPG Key ID: D864B06D1E81618F

View File

@ -64,7 +64,7 @@ auto MaidenheadLocatorValidator::validate (QString& input, int& pos) const -> St
auto subsquare = match.captured ("subsquare");
if (subsquare.size ())
{
input.replace (match.capturedStart ("subsquare"), match.capturedLength ("subsquare"), subsquare.toLower ());
input.replace (match.capturedStart ("subsquare"), match.capturedLength ("subsquare"), subsquare.toUpper ());
}
if (match.hasMatch ()) return Acceptable;
if (!input.size () || match.hasPartialMatch ()) return Intermediate;