diff --git a/scripts/utils.js b/scripts/utils.js index 31e8c6c..055f1be 100644 --- a/scripts/utils.js +++ b/scripts/utils.js @@ -31,7 +31,8 @@ const getArgs = function () { const getSafeFilePath = function (rootPath, singleFileSegment) { var filePath = path.join(rootPath, singleFileSegment); if ( - path.dirname(filePath) !== rootPath || + (path.dirname(filePath) !== rootPath && + path.dirname(filePath) !== rootPath.replace("/", "\\")) || path.basename(filePath) !== singleFileSegment || path.normalize(singleFileSegment) !== singleFileSegment ) {