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
1 changed files with 1 additions and 1 deletions

View File

@ -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"