We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24ed8d4 commit 941d1c0Copy full SHA for 941d1c0
src/core/qgsmimedatautils.cpp
@@ -207,12 +207,12 @@ QString QgsMimeDataUtils::encode( const QStringList &items )
207
{
208
QString encoded;
209
// Do not escape colon twice
210
- QRegExp re( "([^\\\\]):" );
+ QRegularExpression re( "(?<!\\\\):" );
211
Q_FOREACH ( const QString &item, items )
212
213
QString str = item;
214
str.replace( '\\', QLatin1String( "\\\\" ) );
215
- str.replace( re, QLatin1String( "\\1\\:" ) );
+ str.replace( re, QLatin1String( "\\:" ) );
216
encoded += str + ':';
217
}
218
return encoded.left( encoded.length() - 1 );
0 commit comments