opt: replyitem: seek time

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2024-12-12 15:32:37 +08:00
parent 5d8b42a928
commit c7fef4e998
4 changed files with 51 additions and 29 deletions

View File

@@ -299,7 +299,6 @@ class ReplyItemGrpc extends StatelessWidget {
null,
textPainter,
didExceedMaxLines,
getTag,
),
],
),
@@ -531,7 +530,6 @@ class ReplyItemGrpc extends StatelessWidget {
replyItem,
null,
null,
getTag,
),
],
),
@@ -589,7 +587,6 @@ class ReplyItemGrpc extends StatelessWidget {
fReplyItem,
textPainter,
didExceedMaxLines,
getTag,
) {
final String routePath = Get.currentRoute;
bool isVideoPage = routePath.startsWith('/video');
@@ -665,7 +662,7 @@ class ReplyItemGrpc extends StatelessWidget {
if (patternStr.isNotEmpty) {
patternStr += "|";
}
patternStr += r'(\b(?:\d+[:])?[0-5]?[0-9][:][0-5]?[0-9]\b)';
patternStr += r'(\b(?:\d+[:])?\d+[:]\d+\b)';
if (jumpUrlKeysList.isNotEmpty) {
patternStr += '|${jumpUrlKeysList.map(RegExp.escape).join('|')}';
}
@@ -723,8 +720,7 @@ class ReplyItemGrpc extends StatelessWidget {
},
),
);
} else if (RegExp(r'^\b(?:\d+[:])?[0-5]?[0-9][:][0-5]?[0-9]\b$')
.hasMatch(matchStr)) {
} else if (RegExp(r'^\b(?:\d+[:])?\d+[:]\d+\b$').hasMatch(matchStr)) {
matchStr = matchStr.replaceAll('', ':');
bool isValid = false;
try {