Skip to content

Commit

Permalink
Merge pull request #3 from mikolayek/patch-1
Browse files Browse the repository at this point in the history
Update property2json.js
  • Loading branch information
fromdev authored Oct 25, 2023
2 parents eaf6594 + be59297 commit 3f59414
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions javascripts/property2json.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const property2json = function(propkeyarr, value, json) {
for(let i = 0; i < propkeyarr.length; i++ ) {
let name = cleanse(propkeyarr[i]);
if(i === propkeyarr.length-1) {
parent[name] = value;
parent[name] = value.trimStart();
} else {
parent[name] = parent[name] || {};
parent = parent[name];
Expand All @@ -22,4 +22,4 @@ const cleanse = function(name) {
return name;
}

}
}

0 comments on commit 3f59414

Please sign in to comment.