commit 1c725c913ca0d20eb2d1b02badbc194b638e0e90
Author: Juergen Spitzmueller <sp...@lyx.org>
Date:   Sun Sep 18 12:59:43 2016 +0200

    Regex fix for endyear
    
    As of biblatex 3.5, years and endyears can be negative (BCE).
---
 src/BiblioInfo.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/BiblioInfo.cpp b/src/BiblioInfo.cpp
index 421d717..b74984a 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);

Reply via email to