From ad65e094b720e65aad9d00c06546a112bc0c2951 Mon Sep 17 00:00:00 2001 From: pppscn <35696959@qq.com> Date: Thu, 23 Jun 2022 11:29:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=EF=BC=9A=E6=94=AF=E6=8C=81`?= =?UTF-8?q?=E6=AD=A3=E5=88=99=E6=9B=BF=E6=8D=A2=3D=3D=3D=E5=8F=B3=E8=BE=B9?= =?UTF-8?q?`=E6=B7=BB=E5=8A=A0\n=E7=94=A8=E4=BA=8E=E6=89=8B=E5=8A=A8?= =?UTF-8?q?=E6=8D=A2=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/com/idormy/sms/forwarder/entity/MsgInfo.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/idormy/sms/forwarder/entity/MsgInfo.kt b/app/src/main/java/com/idormy/sms/forwarder/entity/MsgInfo.kt index eb483559..b79574ee 100644 --- a/app/src/main/java/com/idormy/sms/forwarder/entity/MsgInfo.kt +++ b/app/src/main/java/com/idormy/sms/forwarder/entity/MsgInfo.kt @@ -100,7 +100,7 @@ data class MsgInfo( val lineSplit = line.split("===".toRegex()).toTypedArray() if (lineSplit.isNotEmpty()) { val regex = lineSplit[0] - val replacement = if (lineSplit.size >= 2) lineSplit[1] else "" + val replacement = if (lineSplit.size >= 2) lineSplit[1].replace("\\\\n".toRegex(), "\n") else "" newContent = newContent.replace(regex.toRegex(), replacement) } }