From ab9d7d6a808c1eaf4ecef8f733951306532e0ce3 Mon Sep 17 00:00:00 2001 From: Peng-YM <1048217874pengym@gmail.com> Date: Sun, 20 Sep 2020 10:00:22 +0800 Subject: [PATCH] Bug fixed --- scripts/handle-duplicate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/handle-duplicate.js b/scripts/handle-duplicate.js index 5d1750d..9ede3b1 100644 --- a/scripts/handle-duplicate.js +++ b/scripts/handle-duplicate.js @@ -3,8 +3,8 @@ function operator(proxies) { return proxies.map(p => { if (!counter[p.name]) counter[p.name] = 0; const num = "00000" + counter[p.name]; + ++counter[p.name]; p.name = p.name + " " + num.substr(num.length-2); - counter[p.name]++; return p; }); } \ No newline at end of file