mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-09-08 08:07:54 -04:00
Fix reg exp for lat,long string.
This commit is contained in:
parent
e564ac2f39
commit
0a3a455937
@ -273,7 +273,7 @@ public:
|
|||||||
{
|
{
|
||||||
QRegularExpressionMatch match;
|
QRegularExpressionMatch match;
|
||||||
|
|
||||||
QString decimalPattern = "(-?[0-9]+(\\.[0-9]+)?) *,? *(-?[0-9]+(\\.[0-9]+)?)";
|
QString decimalPattern = "(-?[0-9]+(\\.[0-9]+)?) *[ ,] *(-?[0-9]+(\\.[0-9]+)?)";
|
||||||
if (exact) {
|
if (exact) {
|
||||||
decimalPattern = QRegularExpression::anchoredPattern(decimalPattern);
|
decimalPattern = QRegularExpression::anchoredPattern(decimalPattern);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user