Skip to content

Commit

Permalink
fixes #2816
Browse files Browse the repository at this point in the history
  • Loading branch information
retorquere committed Mar 16, 2024
1 parent 70a7377 commit 68efec5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 17 deletions.
2 changes: 1 addition & 1 deletion content/dateparser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ export function strToISO(str: string): string {
}

export function dateToISO(date: ParsedDate): string {
if (date.type === 'interval') return `${dateToISO(date.from)}/${dateToISO(date.to)}`
if (date.type === 'interval') return `${dateToISO(date.from)}/${dateToISO(date.to)}`.replace(/^[/]$/, '')

if (typeof date.year !== 'number') return ''

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -521,8 +521,7 @@ assur{\'e}e par les services de traduction de l'Universit{\'e} McGill.},
@article{Prior-1985-WhatWrongEtiological,
title = {What Is {{Wrong}} with {{Etiological Accounts}} of {{Biological Function}}?},
author = {Prior, Elizabeth W.},
year = {1985},
month = jul,
year = {1985-07/1985-10},
journal = {Pacific Philosophical Quarterly},
volume = {66},
pages = {310--328},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@

@article{Shelahcombinatorialproblemstability,
title = {A Combinatorial Problem; Stability and Order for Models and Theories in Infinitary Languages},
author = {Shelah, Saharon},
year = {undefined},
journal = {Pacific Journal of Mathematics},
volume = {41},
pages = {247--261}
}


15 changes: 5 additions & 10 deletions test/fixtures/export/date ranges #747+#746.bibtex
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
@article{Adams2015,
title = {746: {{The}} Physical Volcanology of the 1600 Eruption of {{Huaynaputina}}, Southern {{Peru}}},
author = {Adams, Nancy K and DeSilva, Shanaka L and Self, Steven and Salas, Guido and Schubring, Steven and Permenter, Jason L and Arbesman, Kendra},
year = {2015},
month = jun,
year = {2015-06-22/2015-06-26},
journal = {Bulletin of Volcanology},
volume = {62},
pages = {493--518},
Expand All @@ -13,8 +12,7 @@
@article{Adams2017,
title = {747: {{The}} Physical Volcanology of the 1600 Eruption of {{Huaynaputina}}, Southern {{Peru}}},
author = {Adams, Nancy K and DeSilva, Shanaka L and Self, Steven and Salas, Guido and Schubring, Steven and Permenter, Jason L and Arbesman, Kendra},
year = {2017},
month = jun,
year = {2017-06-18/2017-06-23},
journal = {Bulletin of Volcanology},
volume = {62},
pages = {493--518},
Expand All @@ -26,8 +24,7 @@
title = {Identifying Faulty Traffic Detectors with {{Floating Car Data}}},
booktitle = {2011 {{IEEE Forum}} on {{Integrated}} and {{Sustainable Transportation Systems}}},
author = {{P. Widhalm} and {H. Koller} and {W. Ponweiser}},
year = {2011},
month = jun,
year = {2011-06-29/2011-07-01},
pages = {103--108},
doi = {10.1109/FISTS.2011.5973643},
abstract = {Virtually all ITS applications rely on accurate traffic data. Identification of faulty detectors is thus vital for their reliability and efficiency. Most existing approaches solely use current and historical data of single or adjacent detectors and are based on empirical thresholds. We present a method for fault detection using Floating-Car Data (FCD) as independent source of information which allows to distinguish changed traffic conditions from sensor faults. Fault detection is based on residuals of a nonlinear regression model fitted to detector readings and FCD traffic speeds. Instead of applying rule-of-thumb thresholds we employ a statistical test, where thresholds result naturally from historical data, sample sizes and required fault detection accuracy. We provide a theoretical framework for fault detectability analysis and empirically evaluate the fault detection capability of our approach using data obtained from a microscopic traffic simulation.},
Expand All @@ -38,8 +35,7 @@
title = {A Tour of the Worm},
booktitle = {Proceedings of the {{Winter}} 1989 {{USENIX Conference}}},
author = {Seeley, Donn},
year = {1989},
month = jan,
year = {1989-01-30/1989-02-03},
pages = {287--304},
publisher = {USENIX},
address = {San Diego, California, USA}
Expand All @@ -49,8 +45,7 @@
title = {A Language/Action Perspective on the Design of Cooperative Work},
booktitle = {Proceedings of the 1986 {{ACM Conference}} on {{Computer-supported Cooperative Work}} ({{CSCW}} '86)},
author = {Winograd, Terry},
year = {1986},
month = dec,
year = {1986-12-03/1986-12-05},
pages = {203--220},
publisher = {ACM},
address = {Austin, TX},
Expand Down

0 comments on commit 68efec5

Please sign in to comment.