diff --git a/action/index.cjs b/action/index.cjs index 0366da7..ae6ea41 100644 --- a/action/index.cjs +++ b/action/index.cjs @@ -188116,7 +188116,7 @@ const robot = (app) => { return [...new Set(accounts)]; } function getDistinctTokens(fileNames) { - const regex = /tokens\/(.*?).json/; + const regex = /tokens\/(.*?)\/info.json/; const tokens = fileNames .map(x => regex.exec(x)?.at(1)) .filter(x => x); diff --git a/src/bot.ts b/src/bot.ts index 4e3804b..9d2cbb2 100644 --- a/src/bot.ts +++ b/src/bot.ts @@ -180,7 +180,7 @@ export const robot = (app: Probot) => { } function getDistinctTokens(fileNames: string[]) { - const regex = /tokens\/(.*?).json/; + const regex = /tokens\/(.*?)\/info.json/; const tokens = fileNames .map(x => regex.exec(x)?.at(1))