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 c5b3b1a commit bcb69c5Copy full SHA for bcb69c5
src/gui/qgshelp.cpp
@@ -55,9 +55,10 @@ QUrl QgsHelp::helpUrl( const QString& key )
55
fullPath = path;
56
Q_FOREACH ( const QString& var, scope->variableNames() )
57
{
58
- QRegularExpression rx( QStringLiteral( "(?<!\\$)\\$%1" ).arg( var ) );
+ QRegularExpression rx( QStringLiteral( "(<!\\$\\$)*(\\$%1)" ).arg( var ) );
59
fullPath.replace( rx, scope->variable( var ).toString() );
60
}
61
+ fullPath.replace( QRegularExpression( "(\\$\\$)" ), "$" );
62
63
helpPath = QStringLiteral( "%1/%2" ).arg( fullPath ).arg( key );
64
0 commit comments