1
0
mirror of https://github.com/6dylan6/jdpro.git synced 2025-07-21 11:54:32 +08:00
This commit is contained in:
2024
2025-03-31 21:25:57 +08:00
parent 89ef790a16
commit 23b21979e1
6 changed files with 14 additions and 19 deletions

View File

@@ -30,7 +30,7 @@ function getLatestFile(files) {
async function getToken() {
const authConfig = await readFile(authFile);
// console.log(authConfig.toString().match(/"token":"(.*?)",/)[1])
return authConfig.toString().match(/"token":"(.*?)",/)[1];
return authConfig.toString().match(/"token":"([^"]*)"(?!.*"token":)/)[1];
}
// getToken()
module.exports.getEnvs = async () => {