From 75809edb6b6f426fb947e79b9668777001299013 Mon Sep 17 00:00:00 2001 From: "Steven G. Johnson" Date: Tue, 1 Aug 2017 12:07:50 -0400 Subject: [PATCH] test case-insensitivity of entry types and field keys --- example/examples.bib | 4 ++-- src/parser.jl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/example/examples.bib b/example/examples.bib index 36ac849..b784a7d 100644 --- a/example/examples.bib +++ b/example/examples.bib @@ -55,12 +55,12 @@ indextitle = {Effect of immobilization on catalytic characteristics}, } -@article{angenendt, +@Article{angenendt, author = {Angenendt, Arnold}, title = {In Honore Salvatoris~-- Vom Sinn und Unsinn der Patrozinienkunde}, journaltitle = {Revue d'Histoire Eccl{\'e}siastique}, - date = 2002, + Date = 2002, volume = 97, pages = {431--456, 791--823}, langid = {german}, diff --git a/src/parser.jl b/src/parser.jl index df6d296..f1382b3 100644 --- a/src/parser.jl +++ b/src/parser.jl @@ -89,7 +89,7 @@ field!(parser, dict) = begin if token != "}" key = token expect!(parser, "=") - token, dict[key] = value!(parser) + token, dict[lowercase(key)] = value!(parser) end end expect(parser, token, "}")