Skip to content
Permalink
Browse files
Fix ported regular expression string in the CRS class
  • Loading branch information
nirvn authored and nyalldawson committed Jul 16, 2021
1 parent 19849a7 commit 677c14dcfb4dd9161c8bc750eeda9cc16b3451a9
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/proj/qgscoordinatereferencesystem.cpp
@@ -400,7 +400,7 @@ bool QgsCoordinateReferenceSystem::createFromOgcWmsCrs( const QString &crs )
}
else
{
thread_local const QRegularExpression re_urn( QRegularExpression::anchoredPattern( QStringLiteral( "urn:ogc:def:crs:([^:]+).+([^:]+)" ) ), QRegularExpression::CaseInsensitiveOption );
thread_local const QRegularExpression re_urn( QRegularExpression::anchoredPattern( QStringLiteral( "urn:ogc:def:crs:([^:]+).+(?<=:)([^:]+)" ) ), QRegularExpression::CaseInsensitiveOption );
match = re_urn.match( wmsCrs );
if ( match.hasMatch() )
{

0 comments on commit 677c14d

Please sign in to comment.