Skip to content

Commit

Permalink
fixed the funding regex
Browse files Browse the repository at this point in the history
  • Loading branch information
GhomKrosmonaute committed Oct 22, 2024
1 parent 51bcd02 commit 5ec27e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands/info.native.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ export default new app.Command({

try {
const fundingFile = await fs.promises.readFile(
app.fullPath(".github/funding.yml"),
app.fullPath(".github", "funding.yml"),
"utf-8",
)

const match = /^buy_me_a_coffee: (.+)\n?$/.exec(fundingFile)
const match = /buy_me_a_coffee: (.+)\n?/.exec(fundingFile)

if (match) fundingURL = `https://buymeacoffee.com/${match[1]}`
} catch {}
Expand Down

0 comments on commit 5ec27e6

Please sign in to comment.