Fixed whitespace issue for QX

This commit is contained in:
Peng-YM 2020-09-21 13:45:10 +08:00
parent 535a20bd90
commit 3d208c9e9f
2 changed files with 4 additions and 2 deletions

View File

@ -1212,7 +1212,9 @@ function getQXParams(line) {
const params = {};
const protocols = ["shadowsocks", "vmess", "http", "trojan"];
groups.forEach((g) => {
const [key, value] = g.split("=");
let [key, value] = g.split("=");
key = key.trim();
value = value.trim();
if (protocols.indexOf(key) !== -1) {
params.type = key;
const conf = value.split(":");

File diff suppressed because one or more lines are too long