小调整

pull/303/head
王良 2024-04-21 21:59:26 +08:00
parent 0b03e5f975
commit e101e23876
1 changed files with 3 additions and 0 deletions

View File

@ -2,6 +2,9 @@ const lodash = require('lodash')
const log = require('./util.log')
function isMatched (url, regexp) {
if (regexp === '*') {
regexp = '.*'
}
return url.match(regexp)
}