Skip to content

Commit 47f520a

Browse files
committed
use a raw string to avoid unreadable escaped one
Signed-off-by: Matthieu Gallien <[email protected]>
1 parent 222a421 commit 47f520a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libsync/account.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ void Account::setSslErrorHandler(AbstractSslErrorHandler *handler)
436436

437437
void Account::setUrl(const QUrl &url)
438438
{
439-
QRegularExpression discoverPublicLinks("(http.:\\/\\/[^/]*).*\\/s\\/([^/]*)");
439+
QRegularExpression discoverPublicLinks(R"((http.://[^/]*).*/s/([^/]*))");
440440
auto isPublicLink = discoverPublicLinks.match(url.toString());
441441
if (isPublicLink.hasMatch()) {
442442
_url = QUrl::fromUserInput(isPublicLink.captured(1));

0 commit comments

Comments
 (0)