mirror of
https://github.com/shufflewzc/faker3.git
synced 2025-07-03 18:43:20 +08:00
update
This commit is contained in:
@ -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 () => {
|
||||
|
Reference in New Issue
Block a user