From 3c1e813f557df6c0da918fb5a2dba829ec96eb04 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