Skip to content

Commit

Permalink
Update utils.js
Browse files Browse the repository at this point in the history
  • Loading branch information
varmoh authored Oct 15, 2024
1 parent 3b52954 commit a12e5df
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions js/util/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export const buildContentFilePath = (fileName) => {
const normalizedPath = path
.normalize(fileName)
.replace(/^(\.\.(\/|\\|$))+/, "");
console.log("normalizedPath", normalizedPath);
return path.join(process.env.CONTENT_FOLDER || "data", normalizedPath);
};

Expand Down

0 comments on commit a12e5df

Please sign in to comment.