Skip to content

Commit

Permalink
ctrlEnterSend: fix for new Discord update (#2647)
Browse files Browse the repository at this point in the history
  • Loading branch information
UlyssesZh committed Jun 30, 2024
1 parent 5c05443 commit 7749206
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/ctrlEnterSend/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ export default definePlugin({
}),
patches: [
{
find: ".ENTER&&(!",
find: "!this.hasOpenCodeBlock()",
replacement: {
match: /(?<=(\i)\.which===\i\.\i.ENTER&&).{0,100}(\(0,\i\.\i\)\(\i\)).{0,100}(?=&&\(\i\.preventDefault)/,
match: /!(\i).shiftKey&&!(this.hasOpenCodeBlock\(\))&&\(.{0,100}?\)/,
replace: "$self.shouldSubmit($1, $2)"
}
}
Expand Down

0 comments on commit 7749206

Please sign in to comment.