From f0ce9bcd2076f52485721b660507139609f0c5e9 Mon Sep 17 00:00:00 2001 From: Student Main Date: Wed, 16 Sep 2020 21:17:19 +0800 Subject: [PATCH] fix error when convert grammar in js --- shadowsocks-csharp/Data/abp.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shadowsocks-csharp/Data/abp.js b/shadowsocks-csharp/Data/abp.js index 1f8c1408..1d5bcdcf 100644 --- a/shadowsocks-csharp/Data/abp.js +++ b/shadowsocks-csharp/Data/abp.js @@ -11,13 +11,13 @@ var rules = []; // convert to abp grammar for (var i = 0; i < __RULES__.length; i++) { - var s = __RULES__.pop(); + var s = __RULES__[i]; if (s.substring(0, 2) == "||") s += "^"; rules.push(s); } for (var i = 0; i < __USERRULES__.length; i++) { - var s = __USERRULES__.pop(); + var s = __USERRULES__[i]; if (s.substring(0, 2) == "||") s += "^"; userrules.push(s); }