小调整
parent
0b03e5f975
commit
e101e23876
|
@ -2,6 +2,9 @@ const lodash = require('lodash')
|
||||||
const log = require('./util.log')
|
const log = require('./util.log')
|
||||||
|
|
||||||
function isMatched (url, regexp) {
|
function isMatched (url, regexp) {
|
||||||
|
if (regexp === '*') {
|
||||||
|
regexp = '.*'
|
||||||
|
}
|
||||||
return url.match(regexp)
|
return url.match(regexp)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue