TextReplace: Fix Linebreak (#1057)

This commit is contained in:
Đỗ Văn Hoài Tuân 2023-05-04 17:47:31 -07:00 committed by GitHub
parent 8f61119b99
commit 84371ed456
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -153,7 +153,7 @@ function TextReplace({ title, rulesArray, rulesKey }: TextReplaceProps) {
<Input <Input
placeholder="Replace" placeholder="Replace"
initialValue={rule.replace} initialValue={rule.replace}
onChange={e => onChange(e, index, "replace")} onChange={e => onChange(e.replaceAll("\\n", "\n"), index, "replace")}
/> />
<Input <Input
placeholder="Only if includes" placeholder="Only if includes"