diff --git a/Telegram/SourceFiles/history/view/history_view_schedule_box.cpp b/Telegram/SourceFiles/history/view/history_view_schedule_box.cpp index ba45eff07..cb28ae824 100644 --- a/Telegram/SourceFiles/history/view/history_view_schedule_box.cpp +++ b/Telegram/SourceFiles/history/view/history_view_schedule_box.cpp @@ -137,7 +137,7 @@ private: QTime ValidateTime(const QString &value) { const auto match = QRegularExpression( - "^(\\d\\d)\\:(\\d\\d)$").match(value); + "^(\\d{1,2})\\:(\\d\\d)$").match(value); if (!match.hasMatch()) { return QTime(); }