Skip to content

Commit 9262674

Browse files
authored
fix issue with quotes in csv building
1 parent 4fe6509 commit 9262674

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Assets/UXF/Scripts/Etc/UXFDataTable.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public static UXFDataTable FromCSV(string[] csvLines)
6565
// build across the row
6666
var row = new UXFDataRow();
6767
for (int j = 0; j < values.Length; j++)
68-
row.Add((headers[j], values[j]));
68+
row.Add((headers[j], values[j].Trim('\"')));
6969

7070
table.AddCompleteRow(row);
7171
}
@@ -209,4 +209,4 @@ public class UXFDataRow : List<(string columnName, object value)>
209209
public IEnumerable<string> Headers { get { return this.Select(kvp => kvp.columnName); } }
210210
}
211211

212-
}
212+
}

0 commit comments

Comments
 (0)