Skip to content

Commit

Permalink
Adjust base path replacement logic (fix)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukiffer committed Feb 20, 2023
1 parent a15c9ac commit 833c542
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ async function main() {

async function pushFile(filePath, fileName, fileContent) {
console.log(filePath, fileName, fileContent);
console.log(basePath);

const fileOptions = {
filePath: filePath.replace(new RegExp(`^\\.\\/?${ basePath }\\/`), ''),
filePath: filePath.replace(basePath, ''),
fileName,
fileContent
};
Expand Down

0 comments on commit 833c542

Please sign in to comment.