fix: sys msg matcher

This commit is contained in:
guozhigq
2024-11-03 00:29:49 +08:00
parent 0bc2a79468
commit dcd04d73cc

View File

@ -136,6 +136,7 @@ class MessageUtils {
.replaceAll('}', '');
result[linkText] = match.group(0)!;
}
print('str: $str');
message += str;
}
} else {
@ -144,6 +145,10 @@ class MessageUtils {
}
lastMatchEnd = end;
}
// 处理剩余的未匹配部分
if (lastMatchEnd < text.length) {
message += text.substring(lastMatchEnd + 1);
}
result['message'] = message;
} else {
result['message'] = text;