Skip to content

Commit

Permalink
Update abp.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Student Main committed Oct 23, 2020
1 parent 5f760a5 commit a1f9c3f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions shadowsocks-csharp/Data/abp.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,16 @@ var userrules = [];
var rules = [];

// convert to abp grammar
var re = /^(@@)?\|\|.*?[^\^]$/;
for (var i = 0; i < __RULES__.length; i++) {
var s = __RULES__[i];
if (s.substring(0, 2) == "||") s += "^";
if (s.match(re)) s += "^";
rules.push(s);
}

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

Expand Down

0 comments on commit a1f9c3f

Please sign in to comment.