kopia lustrzana https://github.com/f4exb/sdrangel
Fix reg exp for lat,long string.
rodzic
e564ac2f39
commit
0a3a455937
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue