Allowed timecode parsing inside square brackets withing message.

This commit is contained in:
23rd
2026-03-30 10:58:10 +03:00
parent bd6c50c4c2
commit 71afa9a481
@@ -131,9 +131,9 @@ TextWithEntities AddTimestampLinks(
return text;
}
static const auto expression = QRegularExpression(
"(?<![^\\s\\(\\)\"\\,\\.\\-])"
"(?<![^\\s\\(\\)\\[\\]\"\\,\\.\\-])"
"(?:(?:(\\d{1,2}):)?(\\d))?(\\d):(\\d\\d)"
"(?![^\\s\\(\\)\",\\.\\-\\+])");
"(?![^\\s\\(\\)\\[\\]\",\\.\\-\\+])");
const auto &string = text.text;
auto offset = 0;
while (true) {