From 45a310387a51ef07cab0e53f272930090dc98bf2 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Fri, 10 Mar 2023 16:12:30 +0300 Subject: [PATCH] Don't fix multi-value separators on citations --- csv_metadata_quality/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/csv_metadata_quality/app.py b/csv_metadata_quality/app.py index 6fb2c1f..f71e599 100644 --- a/csv_metadata_quality/app.py +++ b/csv_metadata_quality/app.py @@ -126,7 +126,7 @@ def run(argv): # Fix: invalid and unnecessary multi-value separators. Skip the title # and abstract fields because "|" is used to indicate something like # a subtitle. - match = re.match(r"^.*?(abstract|title).*$", column) + match = re.match(r"^.*?(abstract|[Cc]itation|title).*$", column) if match is None: df[column] = df[column].apply(fix.separators, field_name=column) # Run whitespace fix again after fixing invalid separators