Merge branch 'dev' into immediate-finds

This commit is contained in:
Nuckyz 2024-07-02 00:04:54 -03:00
commit cc536bdbf4
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9

View file

@ -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)"
}
}