Skip to content

Commit

Permalink
Update for lib_ui API change
Browse files Browse the repository at this point in the history
  • Loading branch information
K900 committed Oct 11, 2024
1 parent 16507ff commit 8b88755
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Telegram/SourceFiles/storage/storage_account.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2709,7 +2709,7 @@ std::optional<RecentHashtagPack> Account::saveRecentHashtags(
auto found = false;
auto m = QRegularExpressionMatch();
auto recent = getPack();
for (auto i = 0, next = 0; (m = TextUtilities::RegExpHashtag().match(text, i)).hasMatch(); i = next) {
for (auto i = 0, next = 0; (m = TextUtilities::RegExpHashtag(false).match(text, i)).hasMatch(); i = next) {
i = m.capturedStart();
next = m.capturedEnd();
if (m.hasMatch()) {
Expand All @@ -2721,7 +2721,7 @@ std::optional<RecentHashtagPack> Account::saveRecentHashtags(
}
}
const auto tag = text.mid(i + 1, next - i - 1);
if (TextUtilities::RegExpHashtagExclude().match(tag).hasMatch()) {
if (TextUtilities::RegExpHashtagExclude(false).match(tag).hasMatch()) {
continue;
}
if (!found
Expand Down

0 comments on commit 8b88755

Please sign in to comment.