We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 222a421 commit 47f520aCopy full SHA for 47f520a
src/libsync/account.cpp
@@ -436,7 +436,7 @@ void Account::setSslErrorHandler(AbstractSslErrorHandler *handler)
436
437
void Account::setUrl(const QUrl &url)
438
{
439
- QRegularExpression discoverPublicLinks("(http.:\\/\\/[^/]*).*\\/s\\/([^/]*)");
+ QRegularExpression discoverPublicLinks(R"((http.://[^/]*).*/s/([^/]*))");
440
auto isPublicLink = discoverPublicLinks.match(url.toString());
441
if (isPublicLink.hasMatch()) {
442
_url = QUrl::fromUserInput(isPublicLink.captured(1));
0 commit comments