Skip to content

Commit

Permalink
fix(discord): case insensitive replace
Browse files Browse the repository at this point in the history
  • Loading branch information
ChatDisabled committed Dec 6, 2023
1 parent 139eb33 commit 3ee0cf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/discord.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const MAX_MESSAGE_LENGTH = 72
module.exports.send = (id, token, repo, branch, url, commits, size) =>
new Promise((resolve, reject) => {
let client
const username = repo.replace('Discord', '******')
const username = repo.replace(/(discord)/gi, '******')
console.log('Preparing Webhook...')
console.log(username)
console.log(repo)
Expand Down

0 comments on commit 3ee0cf2

Please sign in to comment.