Skip to content

Commit

Permalink
Excel ColumnMap Regex column throws #379
Browse files Browse the repository at this point in the history
  • Loading branch information
apobekiaris committed May 1, 2019
1 parent 0d8323b commit cf5eba2
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -215,7 +215,9 @@ public struct ImportParameter {
return excelDataReader.AsDataSet(excelDataSetConfiguration);
}

public static string GetColumnName(this ExcelColumnMap excelColumnMap){
public static string GetColumnName(this ExcelColumnMap excelColumnMap) {
if (excelColumnMap.ExcelColumnName == null)
return null;
return !string.IsNullOrWhiteSpace(excelColumnMap.ExcelImport.ColumnMappingRegexPattern)
? Regex.Replace(excelColumnMap.ExcelColumnName,
excelColumnMap.ExcelImport.ColumnMappingRegexPattern,
Expand Down

0 comments on commit cf5eba2

Please sign in to comment.