Skip to content

Commit

Permalink
fix tokens regex
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdan-rosianu committed Feb 19, 2024
1 parent 797863a commit 03b773e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion action/index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 03b773e

Please sign in to comment.