From 49dae31a013d82cd6333086374365367f44adfad Mon Sep 17 00:00:00 2001 From: Luk Lu Date: Sat, 17 Sep 2022 08:45:59 +0800 Subject: [PATCH] rename regcode to aiidcode --- coretool.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/coretool.js b/coretool.js index ce57c21..cb798b7 100644 --- a/coretool.js +++ b/coretool.js @@ -160,7 +160,7 @@ module.exports = { * @return {*} * @memberof TICrypto */ - aiid_to_regcode (aiid) { + aiid_to_aiidcode (aiid) { const alphabet = 'e5fcdg3hqa4b1n0pij2rstuv67mwx89klyz' const base = 16367 let num = (aiid + base) * (base - alphabet.length) @@ -182,7 +182,7 @@ module.exports = { * @return {*} * @memberof TICrypto */ - regcode_to_aiid (code) { + aiidcode_to_aiid (code) { if (typeof code === 'string' && /^[a-zA-Z0-9]+$/.test(code)) { const alphabet = 'e5fcdg3hqa4b1n0pij2rstuv67mwx89klyz' const base = 16367