diff options
author | Đỗ Văn Hoài Tuân <htuan03@gmail.com> | 2023-05-04 17:47:31 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-05 02:47:31 +0200 |
commit | 84371ed4561484e362a2072aa987b109f9bc60db (patch) | |
tree | 9f6b7d523e9a57a5b6a8c45d13d5f8fc20c22ae5 | |
parent | 8f61119b99e3b00b34bede52249401b5146800bc (diff) | |
download | Vencord-84371ed4561484e362a2072aa987b109f9bc60db.tar.gz Vencord-84371ed4561484e362a2072aa987b109f9bc60db.tar.bz2 Vencord-84371ed4561484e362a2072aa987b109f9bc60db.zip |
TextReplace: Fix Linebreak (#1057)
-rw-r--r-- | src/plugins/textReplace.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
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" |