Skip to content

Commit

Permalink
Don't limit google coordinate decoding to .com URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Jul 28, 2020
1 parent 5ee8e54 commit 182167f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/locator/qgsinbuiltlocatorfilters.cpp
Expand Up @@ -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() )
{
Expand Down

0 comments on commit 182167f

Please sign in to comment.