From 84371ed4561484e362a2072aa987b109f9bc60db Mon Sep 17 00:00:00 2001
From: Đỗ Văn Hoài Tuân <htuan03@gmail.com>
Date: Thu, 4 May 2023 17:47:31 -0700
Subject: TextReplace: Fix Linebreak (#1057)

---
 src/plugins/textReplace.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/plugins/textReplace.tsx')

diff --git a/src/plugins/textReplace.tsx b/src/plugins/textReplace.tsx
index 431b129..b685f80 100644
--- a/src/plugins/textReplace.tsx
+++ b/src/plugins/textReplace.tsx
@@ -153,7 +153,7 @@ function TextReplace({ title, rulesArray, rulesKey }: TextReplaceProps) {
                                     <Input
                                         placeholder="Replace"
                                         initialValue={rule.replace}
-                                        onChange={e => onChange(e, index, "replace")}
+                                        onChange={e => onChange(e.replaceAll("\\n", "\n"), index, "replace")}
                                     />
                                     <Input
                                         placeholder="Only if includes"
-- 
cgit 

