匹配方法优化。

pull/375/head
王良 2024-09-28 22:39:25 +08:00
parent ed52dafeb3
commit 8a7c95bb53
1 changed files with 2 additions and 2 deletions

View File

@ -2,8 +2,8 @@ const lodash = require('lodash')
const log = require('./util.log')
function isMatched (url, regexp) {
if (regexp === true || regexp === 'true') {
return true
if (regexp === true || regexp === 'true' || regexp === '*' || regexp === '.*') {
return url
}
try {