mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Allowed timecode parsing inside square brackets withing message.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user