Commit bf3d2d6 1 parent 42afade commit bf3d2d6 Copy full SHA for bf3d2d6
File tree 1 file changed +9
-1
lines changed
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -1489,8 +1489,16 @@ class DataHarmonizer {
1489
1489
// Map current column indices to their indices in matrix to map
1490
1490
const headerMap = { } ;
1491
1491
const unmappedHeaders = [ ] ;
1492
- for ( const [ i , expectedVal ] of expectedSecondaryHeaders . entries ( ) ) {
1492
+ for ( let [ i , expectedVal ] of expectedSecondaryHeaders . entries ( ) ) {
1493
1493
headerMap [ i ] = actualSecondaryHeaders . findIndex ( ( actualVal ) => {
1494
+ // Case insensitivity
1495
+ if ( typeof actualVal === 'string' || actualVal instanceof String ) {
1496
+ actualVal = actualVal . toLowerCase ( )
1497
+ }
1498
+ if ( typeof expectedVal === 'string' || expectedVal instanceof String ) {
1499
+ expectedVal = expectedVal . toLowerCase ( )
1500
+ }
1501
+
1494
1502
return actualVal === expectedVal ;
1495
1503
} ) ;
1496
1504
if ( headerMap [ i ] === - 1 ) {
You can’t perform that action at this time.
0 commit comments