fix: match custom path strictly

This commit is contained in:
soulsands 2023-04-22 19:37:49 +08:00
parent 8725f7cfb2
commit c3c6d73bb2

View File

@ -19,7 +19,7 @@ function handleRequest(req, res) {
continue;
}
const regex = new RegExp(attr.value);
const regex = new RegExp(`^${attr.value}$`);
let match;
try {