Add more FIXME and explain better TODOS for migrations

This commit is contained in:
Nuckyz 2025-01-30 16:01:57 -03:00
parent b2d5c00a23
commit 414539f45e
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9
10 changed files with 13 additions and 3 deletions

View file

@ -44,6 +44,7 @@ export default definePlugin({
{
find: ".selectPreviousCommandOption(",
replacement: {
// FIXME(Bundler change related): Remove old compatiblity once enough time has passed
match: /(?<=(\i)\.which(?:!==|===)\i\.\i.ENTER(\|\||&&)).{0,100}(\(0,\i\.\i\)\(\i\)).{0,100}(?=(?:\|\||&&)\(\i\.preventDefault)/,
replace: (_, event, condition, codeblock) => `${condition === "||" ? "!" : ""}$self.shouldSubmit(${event},${codeblock})`
}