* v1.1.5 * Fix regex test for /ssh/ when url has a base path
@ -1,6 +1,6 @@
{
"name": "wetty",
"version": "1.1.4",
"version": "1.1.5",
"description": "WeTTY = Web + TTY. Terminal access in browser over http/https",
"homepage": "https://github.com/krishnasrinivas/wetty",
"repository": {
@ -30,7 +30,7 @@ export default function createServer(
req: express.Request,
res: express.Response
): express.Response => {
const resourcePath = /^\/ssh\//.test(req.url) ? '../' : '';
const resourcePath = /^\/ssh\//.test(req.url.replace(base, '/')) ? '../' : '';
res.send(`<!doctype html>
<html lang="en">
<head>