diff --git a/st.js b/st.js index 6bb0b2f..d8aeb62 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.normalize(path.join(this.path, u)).replace(/[\\\\/]+$/, '') + return path.join(this.path, u.replace(/\/+$/, '')) } // get a url from a path