Fixed holidays not showing up #44

This commit is contained in:
0xFEEDC0DE64
2017-12-22 16:47:09 +01:00
parent 43515e3245
commit 01889ffe68

View File

@@ -108,7 +108,7 @@ void ReportsWidget::finished()
} }
{ {
static QRegularExpression regex(QStringLiteral("Urlaubsanspruch +([0-9]+\\.[0-9]+\\-?) +([0-9]+\\.[0-9]+\\-?)")); static QRegularExpression regex(QStringLiteral("Urlaubsanspruch +(\\-?[0-9]+\\.[0-9]+) +(\\-?[0-9]+\\.[0-9]+)"));
auto match = regex.match(content); auto match = regex.match(content);
if(match.hasMatch()) if(match.hasMatch())
m_labelHolidays->setText(tr("%0: %1").arg(tr("Holidays")).arg(match.captured(2))); m_labelHolidays->setText(tr("%0: %1").arg(tr("Holidays")).arg(match.captured(2)));