fix: sys msg

This commit is contained in:
bggRGjQaUbCoE
2024-10-30 20:22:09 +08:00
parent 7efafa4190
commit 1d0ffd86d5
2 changed files with 2 additions and 2 deletions

View File

@@ -169,7 +169,7 @@ class _SysMsgPageState extends State<SysMsgPage> {
InlineSpan _buildContent(String content) {
final List<InlineSpan> spanChildren = <InlineSpan>[];
RegExp urlRegExp = RegExp(
'#\\{([^}]*)\\}\\{"([^}]*)"\\}|https?:\\/\\/[^\\s/\$.?#].[^\\s]*|www\\.[^\\s/\$.?#].[^\\s]*');
'#\\{([^}]*)\\}\\{"?([^}]*)"?\\}|https?:\\/\\/[^\\s/\$.?#].[^\\s]*|www\\.[^\\s/\$.?#].[^\\s]*');
content.splitMapJoin(
urlRegExp,
onMatch: (Match match) {

View File

@@ -176,7 +176,7 @@ class _WhisperPageState extends State<WhisperPage> {
? null
: Theme.of(context)
.colorScheme
.secondaryContainer,
.onInverseSurface,
onLongPress: () {
showDialog(
context: context,