]> git.lyx.org Git - features.git/commitdiff
Regex fix for endyear
authorJuergen Spitzmueller <spitz@lyx.org>
Sun, 18 Sep 2016 10:59:43 +0000 (12:59 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Sun, 23 Oct 2016 06:11:30 +0000 (08:11 +0200)
As of biblatex 3.5, years and endyears can be negative (BCE).

src/BiblioInfo.cpp

index e4633f2b45db3ce775439ae137bd683848130a48..63f457284723b5891d44835f89b930e29bf89309 100644 (file)
@@ -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);