fix: 只有时间的评论区不高亮

This commit is contained in:
orz12
2024-02-02 00:06:46 +08:00
parent 85a59e11b9
commit 81371c5a31

View File

@ -544,7 +544,9 @@ InlineSpan buildContent(
content.atNameToMid.isEmpty &&
content.jumpUrl.isEmpty &&
content.vote.isEmpty &&
content.pictures.isEmpty) {
content.pictures.isEmpty &&
content.message.isNotEmpty &&
!RegExp(r'\b[0-9]{1,2}[:][0-9]{2}\b').hasMatch(content.message)) {
return TextSpan(
text: content.message,
recognizer: TapGestureRecognizer()