Issue #18 Allow lower case text in FP altitude field

This commit is contained in:
Mat Sutcliffe
2021-08-08 19:26:32 +01:00
parent 09b58b8084
commit 14e03bd4b5

View File

@@ -385,7 +385,7 @@ namespace BlackMisc
const QRegularExpression &CAltitude::fpAltitudeRegExp()
{
thread_local const QRegularExpression re("((FL|F)\\d{2,3})|(S\\d{2,4})|(A\\d{2,3})|(M\\d{2,4})|(\\d{3,5}(ft|m))");
thread_local const QRegularExpression re("([Ff][Ll]?\\d{2,3})|([Ss]\\d{2,4})|([Aa]\\d{2,3})|([Mm]\\d{2,4})|(\\d{3,5}(ft|m))");
return re;
}