Skip to content

Commit

Permalink
Merge pull request #544 from vlocityinc/beta
Browse files Browse the repository at this point in the history
Fixes an issue with exporting Products, etc with hyphens.
  • Loading branch information
manas-sf authored Dec 12, 2022
2 parents b358eb2 + 0fc96ab commit 79a3d61
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/datapacksexpand.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ DataPacksExpand.generateFolderOrFilename = function(filename, extension) {
.replace(/^[-_\\/]+/, "")
.replace(/[-_\\/]+$/, "");

if (sanitizedFilename == '') {
sanitizedFilename = 'MissingName';
}

let basename = path.basename(sanitizedFilename);

if (basename.length > MAX_FILE_LENGTH) {
Expand Down

0 comments on commit 79a3d61

Please sign in to comment.