Skip to content

Commit

Permalink
Alc csv importer (#1098)
Browse files Browse the repository at this point in the history
* Update imported to filter with spaces in-front of prefixes to exclude names which could end with these values
  • Loading branch information
Christopher-walsh22 authored Sep 8, 2023
1 parent 4ed3b85 commit f150a04
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion api/src/importers/alc/utils/csv-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit f150a04

Please sign in to comment.