匹配方法优化。
parent
ed52dafeb3
commit
8a7c95bb53
|
@ -2,8 +2,8 @@ const lodash = require('lodash')
|
||||||
const log = require('./util.log')
|
const log = require('./util.log')
|
||||||
|
|
||||||
function isMatched (url, regexp) {
|
function isMatched (url, regexp) {
|
||||||
if (regexp === true || regexp === 'true') {
|
if (regexp === true || regexp === 'true' || regexp === '*' || regexp === '.*') {
|
||||||
return true
|
return url
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue