From 204ac3eb80c1fe8bec50d725fce57e54ce19604d Mon Sep 17 00:00:00 2001 From: joe-allen-89 <85872286+joe-allen-89@users.noreply.github.com> Date: Wed, 16 Apr 2025 11:09:11 +0100 Subject: [PATCH] Fix: ensure this.outputPath/sourcePath trailing slash isn't removed --- grunt/helpers/Framework.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/grunt/helpers/Framework.js b/grunt/helpers/Framework.js index c069ecbdf..b53ead49b 100644 --- a/grunt/helpers/Framework.js +++ b/grunt/helpers/Framework.js @@ -42,9 +42,9 @@ class Framework { /** @type {string} */ this.rootPath = rootPath.replace(/\\/g, '/'); /** @type {string} */ - this.outputPath = path.resolve(this.rootPath, outputPath).replace(/\\/g, '/'); + this.outputPath = path.resolve(this.rootPath, outputPath).replace(/\\/g, '/').replace(/\/?$/, '/'); /** @type {string} */ - this.sourcePath = path.resolve(this.rootPath, sourcePath).replace(/\\/g, '/'); + this.sourcePath = path.resolve(this.rootPath, sourcePath).replace(/\\/g, '/').replace(/\/?$/, '/'); /** @type {string} */ this.courseDir = courseDir; /** @type {function} */