From c3c6d73bb2be605086dd51a3459fde79ccd581dc Mon Sep 17 00:00:00 2001 From: soulsands <407221377@qq.com> Date: Sat, 22 Apr 2023 19:37:49 +0800 Subject: [PATCH] fix: match custom path strictly --- src/routes/custom.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/custom.js b/src/routes/custom.js index 077c730cd..f32f7445f 100644 --- a/src/routes/custom.js +++ b/src/routes/custom.js @@ -19,7 +19,7 @@ function handleRequest(req, res) { continue; } - const regex = new RegExp(attr.value); + const regex = new RegExp(`^${attr.value}$`); let match; try {