Skip to content
Permalink
Browse files

Don't limit google coordinate decoding to .com URLs

  • Loading branch information
nirvn committed Jul 28, 2020
1 parent 5ee8e54 commit 182167fcfc050dab4c914c11df095eb8c0fd7f1b
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/app/locator/qgsinbuiltlocatorfilters.cpp
@@ -844,9 +844,9 @@ void QgsGotoLocatorFilter::fetchResults( const QString &string, const QgsLocator
}
}

if ( !okX && !okY && string.indexOf( QStringLiteral( "google.com/maps/" ) ) != -1 )
if ( !okX && !okY )
{
QRegularExpression locationRx( QStringLiteral( "\\/@([0-9\\-\\.\\,]*)z" ) );
QRegularExpression locationRx( QStringLiteral( "google.*\\/@([0-9\\-\\.\\,]*)z" ) );
QRegularExpressionMatch match = locationRx.match( string );
if ( match.hasMatch() )
{

0 comments on commit 182167f

Please sign in to comment.
You can’t perform that action at this time.