From 82df866d1680e6efe7a10126694740637ab620d4 Mon Sep 17 00:00:00 2001 From: Tom de Geus Date: Wed, 27 Oct 2021 08:52:44 +0200 Subject: [PATCH] Author split case-insensitive --- bibtexparser/customization.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bibtexparser/customization.py b/bibtexparser/customization.py index 3e7447d1..c933f926 100644 --- a/bibtexparser/customization.py +++ b/bibtexparser/customization.py @@ -345,7 +345,7 @@ def author(record): """ if "author" in record: if record["author"]: - record["author"] = getnames([i.strip() for i in record["author"].replace('\n', ' ').split(" and ")]) + record["author"] = getnames([i.strip() for i in re.split(r"\ and\ ", record["author"].replace('\n', ' '), flags=re.IGNORECASE)]) else: del record["author"] return record