Skip to content

Commit 72d132a

Browse files
authored
Fix: ensure this.outputPath/sourcePath trailing slash isn't removed (fixes #3676)
1 parent 9de912d commit 72d132a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

grunt/helpers/Framework.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ class Framework {
4242
/** @type {string} */
4343
this.rootPath = rootPath.replace(/\\/g, '/');
4444
/** @type {string} */
45-
this.outputPath = path.resolve(this.rootPath, outputPath).replace(/\\/g, '/');
45+
this.outputPath = path.resolve(this.rootPath, outputPath).replace(/\\/g, '/').replace(/\/?$/, '/');
4646
/** @type {string} */
47-
this.sourcePath = path.resolve(this.rootPath, sourcePath).replace(/\\/g, '/');
47+
this.sourcePath = path.resolve(this.rootPath, sourcePath).replace(/\\/g, '/').replace(/\/?$/, '/');
4848
/** @type {string} */
4949
this.courseDir = courseDir;
5050
/** @type {function} */

0 commit comments

Comments
 (0)