1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2025-09-07 07:37:48 -04:00

Fix reg exp for lat,long string.

This commit is contained in:
srcejon 2025-06-10 15:31:36 +01:00
parent e564ac2f39
commit 0a3a455937

View File

@ -273,7 +273,7 @@ public:
{
QRegularExpressionMatch match;
QString decimalPattern = "(-?[0-9]+(\\.[0-9]+)?) *,? *(-?[0-9]+(\\.[0-9]+)?)";
QString decimalPattern = "(-?[0-9]+(\\.[0-9]+)?) *[ ,] *(-?[0-9]+(\\.[0-9]+)?)";
if (exact) {
decimalPattern = QRegularExpression::anchoredPattern(decimalPattern);
}