Skip to content

Commit

Permalink
Fix ported regular expression string in the CRS class
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn authored and nyalldawson committed Jul 16, 2021
1 parent 19849a7 commit 677c14d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/proj/qgscoordinatereferencesystem.cpp
Expand Up @@ -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() )
{
Expand Down

0 comments on commit 677c14d

Please sign in to comment.