代码格式调整:packages/mitmproxy/**/*.js

This commit is contained in:
王良
2024-11-15 12:09:33 +08:00
parent 48132c39b0
commit 3e586bfd9b
56 changed files with 431 additions and 369 deletions

View File

@@ -20,7 +20,7 @@ function createPacClient (pacFilePath) {
const getRules = function (pacFilePath) {
let text = readFile(pacFilePath)
if (text.indexOf('!---------------------EOF') < 0) {
if (!text.includes('!---------------------EOF')) {
text = Buffer.from(text, 'base64').toString()
}
const rules = []