\\b
This commit is contained in:
@ -154,7 +154,7 @@ export class KoaRouter {
|
||||
|
||||
//严格模式
|
||||
if (option?.strict) regexpStr += "$";
|
||||
else regexpStr += "\b";
|
||||
else regexpStr += "\\b";
|
||||
|
||||
//生成正则表达式
|
||||
const regexp = new RegExp(regexpStr);
|
||||
|
Reference in New Issue
Block a user