From: Juergen Spitzmueller Date: Sun, 18 Sep 2016 10:59:43 +0000 (+0200) Subject: Regex fix for endyear X-Git-Tag: 2.2.3~200 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=0f21c5caf6c5ba4afdf97f4c780800adf49f6434;p=features.git Regex fix for endyear As of biblatex 3.5, years and endyears can be negative (BCE). --- 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);