mirror of
https://github.com/GenderDysphoria/GenderDysphoria.fyi.git
synced 2025-01-30 23:06:18 +00:00
Fix extension changes not being applied to basename.
This commit is contained in:
parent
801740056a
commit
e783e92029
@ -28,7 +28,7 @@ module.exports = exports = class File {
|
|||||||
this.cwd = file.dir;
|
this.cwd = file.dir;
|
||||||
this.ext = this.preprocessed ? file.ext : normalizedExt(file.ext);
|
this.ext = this.preprocessed ? file.ext : normalizedExt(file.ext);
|
||||||
this.name = file.name; // index, fileA, fileB
|
this.name = file.name; // index, fileA, fileB
|
||||||
this.basename = file.base; // index.ext, fileA.ext, fileB.ext
|
this.basename = this.name + this.ext; // index.ext, fileA.ext, fileB.ext
|
||||||
|
|
||||||
const dir = this._dir(file.dir);
|
const dir = this._dir(file.dir);
|
||||||
if (dir) {
|
if (dir) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user