diff --git a/st.js b/st.js index 0e79cdc..6bb0b2f 100644 --- a/st.js +++ b/st.js @@ -226,7 +226,7 @@ class Mount { // trailing slash removal to fix Node.js v23 bug // https://github.com/nodejs/node/pull/55527 // can be removed when this is resolved and released - return path.join(this.path, u).replace(/\/+$/, '') + return path.normalize(path.join(this.path, u)).replace(/[\\\\/]+$/, '') } // get a url from a path