From d661ffe43923cb8306f35804c107d545047e38be Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Fri, 10 Mar 2023 16:13:16 +0300 Subject: [PATCH] Check comma space on bibliographicCitation too The regex was only matching `dc.identifier.citation`, but we need to match `dcterms.bibliographicCitation` too. --- 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 f71e599..f5c7ceb 100644 --- a/csv_metadata_quality/app.py +++ b/csv_metadata_quality/app.py @@ -102,7 +102,7 @@ def run(argv): # Fix: missing space after comma. Only run on author and citation # fields for now, as this problem is mostly an issue in names. if args.unsafe_fixes: - match = re.match(r"^.*?(author|citation).*$", column) + match = re.match(r"^.*?(author|[Cc]itation).*$", column) if match is not None: df[column] = df[column].apply(fix.comma_space, field_name=column)