opt: reply err msg

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2024-11-30 10:58:31 +08:00
parent 1df6ed8ce2
commit bde7c73424
4 changed files with 6 additions and 6 deletions

View File

@@ -112,6 +112,8 @@ class GrpcRepo {
e.details?.firstOrNull?.getFieldOrNull(2),
allowMalformed: true,
);
msg = msg.replaceAll(
RegExp(r"[^a-zA-Z0-9\u4e00-\u9fa5,.;!?,。;!?]"), '');
if (msg.isNotEmpty) {
return {'status': false, 'msg': msg};
} else {