From 0f21c5caf6c5ba4afdf97f4c780800adf49f6434 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Sun, 18 Sep 2016 12:59:43 +0200 Subject: [PATCH] Regex fix for endyear As of biblatex 3.5, years and endyears can be negative (BCE). --- src/BiblioInfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BiblioInfo.cpp b/src/BiblioInfo.cpp index e4633f2b45..63f4572847 100644 --- a/src/BiblioInfo.cpp +++ b/src/BiblioInfo.cpp @@ -326,7 +326,7 @@ docstring const BibTeXInfo::getYear() const // Format is [-]YYYY-MM-DD*/[-]YYYY-MM-DD* // We only want the years. static regex const yreg("[-]?([\\d]{4}).*"); - static regex const ereg(".*/([\\d]{4}).*"); + static regex const ereg(".*/[-]?([\\d]{4}).*"); smatch sm; string const date = to_utf8(year); regex_match(date, sm, yreg); -- 2.39.5