fix: match custom path strictly

pull/255/head
soulsands 2023-04-22 19:37:49 +07:00
parent 8725f7cfb2
commit c3c6d73bb2
1 changed files with 1 additions and 1 deletions

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