mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 18:08:10 +00:00
Regex fix for endyear
As of biblatex 3.5, years and endyears can be negative (BCE).
This commit is contained in:
parent
2c4673af58
commit
1c725c913c
@ -326,7 +326,7 @@ docstring const BibTeXInfo::getYear() const
|
|||||||
// Format is [-]YYYY-MM-DD*/[-]YYYY-MM-DD*
|
// Format is [-]YYYY-MM-DD*/[-]YYYY-MM-DD*
|
||||||
// We only want the years.
|
// We only want the years.
|
||||||
static regex const yreg("[-]?([\\d]{4}).*");
|
static regex const yreg("[-]?([\\d]{4}).*");
|
||||||
static regex const ereg(".*/([\\d]{4}).*");
|
static regex const ereg(".*/[-]?([\\d]{4}).*");
|
||||||
smatch sm;
|
smatch sm;
|
||||||
string const date = to_utf8(year);
|
string const date = to_utf8(year);
|
||||||
regex_match(date, sm, yreg);
|
regex_match(date, sm, yreg);
|
||||||
|
Loading…
Reference in New Issue
Block a user