File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -1228,6 +1228,7 @@ void MainWindow::showReleaseNotes(duint cutoffEpoch)
1228
1228
{
1229
1229
static QRegularExpression re (R"( <!-- *(\d\d\d\d.\d\d.\d\d) *-->)" );
1230
1230
auto i = re.globalMatch (markdown);
1231
+ bool seenCutoff = false ;
1231
1232
QStringList words;
1232
1233
while (i.hasNext ())
1233
1234
{
@@ -1236,11 +1237,12 @@ void MainWindow::showReleaseNotes(duint cutoffEpoch)
1236
1237
auto matchDate = QDateTime::fromString (matchText, " yyyy.MM.dd" );
1237
1238
matchDate.setTimeSpec (Qt::UTC);
1238
1239
auto matchEpoch = matchDate.toSecsSinceEpoch ();
1239
- if (matchEpoch <= cutoffEpoch)
1240
+ if (matchEpoch <= cutoffEpoch && seenCutoff )
1240
1241
{
1241
1242
markdown = markdown.left (match.capturedStart (0 ));
1242
1243
break ;
1243
1244
}
1245
+ seenCutoff = true ;
1244
1246
}
1245
1247
}
1246
1248
You can’t perform that action at this time.
0 commit comments