Skip to content

Commit

Permalink
removed string manipulations from role
Browse files Browse the repository at this point in the history
  • Loading branch information
per305 authored and per305 committed Feb 22, 2022
1 parent f6083fe commit 2dd67c5
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions scripts/RestClient/nesp/marineArtefacts/documentImport.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,7 @@ for(var i = 1; i < csvRows.length; i++) {
}

if (fields[role]) {
if ((fields[role].indexOf(',') != -1) || (fields[role].indexOf('"') != -1)) {
var tempType = fields[role].replace(/""/g, '"');
document.role = tempType.substring(1, tempType.length - 1);
}
else {
document.role = fields[role]
}
document.role = fields[role]
}

if (fields[citation]) {
Expand Down

1 comment on commit 2dd67c5

@temi
Copy link
Contributor

@temi temi commented on 2dd67c5 Feb 22, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reviewed

Please sign in to comment.