We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent f77e677 commit c5b3b1aCopy full SHA for c5b3b1a
src/gui/qgshelp.cpp
@@ -20,6 +20,7 @@
20
#include <QFileInfo>
21
#include <QTcpSocket>
22
#include <QDesktopServices>
23
+#include <QRegularExpression>
24
#include <QNetworkProxy>
25
#include <QNetworkProxyFactory>
26
@@ -54,7 +55,8 @@ QUrl QgsHelp::helpUrl( const QString& key )
54
55
fullPath = path;
56
Q_FOREACH ( const QString& var, scope->variableNames() )
57
{
- fullPath.replace( QStringLiteral( "$%1" ).arg( var ), scope->variable( var ).toString() );
58
+ QRegularExpression rx( QStringLiteral( "(?<!\\$)\\$%1" ).arg( var ) );
59
+ fullPath.replace( rx, scope->variable( var ).toString() );
60
}
61
62
helpPath = QStringLiteral( "%1/%2" ).arg( fullPath ).arg( key );
0 commit comments