mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-18 19:35:33 +08:00
Fixes of MS'review as proposed
https://dev.vatsim-germany.org/issues/368#change-2380 (1,2) https://dev.vatsim-germany.org/issues/364#change-2379 (1-11,13)
This commit is contained in:
@@ -179,8 +179,7 @@ namespace BlackMisc
|
||||
*/
|
||||
bool CCallsign::isValidCallsign(const QString &callsign)
|
||||
{
|
||||
//! \todo sometimes callsigns such as 12345, really correct?
|
||||
// static QRegularExpression regexp("^[A-Z]+[A-Z0-9]*$");
|
||||
// We allow all number callsigns
|
||||
static QRegularExpression regexp("^[A-Z0-9]*$");
|
||||
if (callsign.length() < 2 || callsign.length() > 10) { return false; }
|
||||
return (regexp.match(callsign).hasMatch());
|
||||
|
||||
Reference in New Issue
Block a user