Browse Source

匹配方法优化。

pull/375/head
王良 2 months ago
parent
commit
8a7c95bb53
  1. 4
      packages/mitmproxy/src/utils/util.match.js

4
packages/mitmproxy/src/utils/util.match.js

@ -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…
Cancel
Save