diff --git a/src/jsx-node-front.jsx b/src/jsx-node-front.jsx index ce2d3316..eeb03dfa 100644 --- a/src/jsx-node-front.jsx +++ b/src/jsx-node-front.jsx @@ -57,7 +57,7 @@ class NodePlatform extends Platform { } function _absPath(path : string) : string { - return (path.charAt(0) == "/" || path.match(/^[a-zA-Z]:\//)) + return (path.charAt(0) == "/" || path.match(/^[a-zA-Z]:[\/\\]/)) ? path // path is already absolute : this._cwd + "/" + path; }