Skip to content

Commit

Permalink
Update abp.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Student Main authored Oct 21, 2020
1 parent 5f760a5 commit 986d17e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions shadowsocks-csharp/Data/abp.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,17 @@ var rules = [];
// convert to abp grammar
for (var i = 0; i < __RULES__.length; i++) {
var s = __RULES__[i];
if (s.substring(0, 2) == "||") s += "^";
if (s.substring(0, 2) == "||" ||
s.substring(0, 4) == "@@||"
) s += "^";
rules.push(s);
}

for (var i = 0; i < __USERRULES__.length; i++) {
var s = __USERRULES__[i];
if (s.substring(0, 2) == "||") s += "^";
if (s.substring(0, 2) == "||" ||
s.substring(0, 4) == "@@||"
) s += "^";
userrules.push(s);
}

Expand Down

0 comments on commit 986d17e

Please sign in to comment.