Skip to content

Commit

Permalink
HtmlTableImport: replace all spaces with underscores (#4274)
Browse files Browse the repository at this point in the history
in generated field names
  • Loading branch information
ilmari-lauhakangas authored Aug 27, 2023
1 parent 15f8161 commit f89a330
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/modules/HtmlTableImport/HtmlTableImport.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ class HtmlTableImport extends Module{
}

if(!col.field) {
col.field = header.textContent.trim().toLowerCase().replace(" ", "_");
col.field = header.textContent.trim().toLowerCase().replaceAll(" ", "_");
}

width = header.getAttribute("width");
Expand Down Expand Up @@ -179,4 +179,4 @@ class HtmlTableImport extends Module{

HtmlTableImport.moduleName = "htmlTableImport";

export default HtmlTableImport;
export default HtmlTableImport;

0 comments on commit f89a330

Please sign in to comment.