mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-29 05:29:23 +00:00
Don't mask gift numbers in service notifications.
This commit is contained in:
parent
a49cb06d77
commit
8c6f3d66b5
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user