From f150a0481b4b76f9465e318a59c208213fdc874b Mon Sep 17 00:00:00 2001 From: Christopher-walsh22 <106549296+Christopher-walsh22@users.noreply.github.com> Date: Fri, 8 Sep 2023 12:08:54 -0700 Subject: [PATCH] Alc csv importer (#1098) * Update imported to filter with spaces in-front of prefixes to exclude names which could end with these values --- api/src/importers/alc/utils/csv-utils.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/api/src/importers/alc/utils/csv-utils.js b/api/src/importers/alc/utils/csv-utils.js index 13a25e697..4e85abbdf 100644 --- a/api/src/importers/alc/utils/csv-utils.js +++ b/api/src/importers/alc/utils/csv-utils.js @@ -29,7 +29,9 @@ exports.getOutcomeDescription = function(csvRow) { * @returns {string} the entity type. */ exports.getEntityType = function(csvRow) { - let options = ["Ltd.", "Ltd", "Inc.", "Inc", "Corp.", "Corp"]; + + let options = [" Ltd.", " Ltd", " Inc.", " Inc", " Corp.", " Corp"]; + function endsWithBusinessType(value, endings){ for (const ending of endings) {