mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-01 23:15:59 +00:00
Don't mask gift numbers in service notifications.
This commit is contained in:
@@ -96,7 +96,7 @@ template <typename T>
|
||||
}
|
||||
|
||||
[[nodiscard]] TextWithEntities SpoilerLoginCode(TextWithEntities text) {
|
||||
const auto r = QRegularExpression(u"([\\d\\-]{4,8})"_q);
|
||||
const auto r = QRegularExpression(u"(?<!#)([\\d\\-]{4,8})"_q);
|
||||
const auto m = r.match(text.text);
|
||||
if (!m.hasMatch()) {
|
||||
return text;
|
||||
|
Reference in New Issue
Block a user