diff --git a/src/plugins/textReplace.tsx b/src/plugins/textReplace.tsx
index f41afc5a..e1611682 100644
--- a/src/plugins/textReplace.tsx
+++ b/src/plugins/textReplace.tsx
@@ -159,7 +159,7 @@ function TextReplace({ title, rulesArray, rulesKey, update }: TextReplaceProps)
onChange(e.replaceAll("\\n", "\n"), index, "replace")}
+ onChange={e => onChange(e, index, "replace")}
/>