Commit e3cd8998 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Port to QRegularExpression

parent d1bcf5f2
Pipeline #153425 passed with stage
in 51 seconds
......@@ -20,6 +20,7 @@
#include <KCalUtils/IncidenceFormatter>
#include <KJob>
#include <QRegularExpression>
#include <QTextBrowser>
#include <QVBoxLayout>
......@@ -47,7 +48,7 @@ void TextBrowser::doSetSource(const QUrl &name, QTextDocument::ResourceType type
if (uri.startsWith(QLatin1String("uid:")) || uri.startsWith(QLatin1String("kmail:"))
|| uri.startsWith(QStringLiteral("urn:x-ical").section(QLatin1Char(':'), 0, 0)) || uri.startsWith(QLatin1String("news:"))
|| uri.startsWith(QLatin1String("mailto:"))) {
uri.replace(QRegExp(QLatin1String("^([^:]+:)/+")), QStringLiteral("\\1"));
uri.replace(QRegularExpression(QLatin1String("^([^:]+:)/+")), QStringLiteral("\\1"));
}
if (uri.startsWith(QLatin1String("ATTACH:"))) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment