From 833c54215cf57e7f54a16e3dfcffae467f9ac072 Mon Sep 17 00:00:00 2001 From: Luke Fritz Date: Mon, 20 Feb 2023 13:41:45 -0600 Subject: [PATCH] Adjust base path replacement logic (fix) --- .../deploy-files-to-sharepoint/deploy-files-to-sharepoint.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/deployment/deploy-files-to-sharepoint/deploy-files-to-sharepoint.js b/scripts/deployment/deploy-files-to-sharepoint/deploy-files-to-sharepoint.js index be38d22..183346b 100644 --- a/scripts/deployment/deploy-files-to-sharepoint/deploy-files-to-sharepoint.js +++ b/scripts/deployment/deploy-files-to-sharepoint/deploy-files-to-sharepoint.js @@ -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 };