XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

XFESpaceNinjaServer

A simple server for a small space ninja game

公开
关注 0 Fork 0 Star 0
返回提交历史

XFEstudio/XFESpaceNinjaServer

fix: incomplete regex for stripped assets (#614)

066d07f8
Sainan <sainan@calamity.inc>
提交于

代码差异

1 个文件 +1 -1
Modified src/routes/cache.ts +1 -1
@@ -12,7 +12,7 @@ cacheRouter.get(/^\/origin\/[a-zA-Z0-9]+\/[0-9]+\/H\.Cache\.bin.*$/, (req, res)
12 12 }
13 13 });
14 14
15 cacheRouter.get(/\.bk2!/, async (req, res) => {
15 cacheRouter.get(/^\/0\/Lotus\/.+!.+$/, async (req, res) => {
16 16 try {
17 17 const dir = req.path.substr(0, req.path.lastIndexOf("/"));
18 18 const file = req.path.substr(dir.length + 1);