Skip to content

Commit 9377a72

Browse files
committed
fix(path): Remove windows path error.
1 parent 64613dd commit 9377a72

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

src/utils/path.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,13 @@ export class Path
9797
this._isFile = this._ext != "";
9898
this._exists = undefined;
9999

100-
if (this._isWindows)
101-
{
102-
this._root = this._root.replaceAll("/", "\\");
103-
this._dir = this._dir.replaceAll("/", "\\");
104-
this._parent = this._parent.replaceAll("/", "\\");
105-
this._fullPath = this._fullPath.replaceAll("/", "\\");
106-
}
100+
// if (this._isWindows)
101+
// {
102+
// this._root = this._root.replaceAll("/", "\\");
103+
// this._dir = this._dir.replaceAll("/", "\\");
104+
// this._parent = this._parent.replaceAll("/", "\\");
105+
// this._fullPath = this._fullPath.replaceAll("/", "\\");
106+
// }
107107

108108
this._exists; // force a re-evaluation of the exists property which will also throw an error if the path does not exist
109109
return this;

styles.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)