fix parsing links as mentions
This commit is contained in:
parent
24f5f7d0b6
commit
4aa962193d
3 changed files with 6 additions and 6 deletions
|
|
@ -9,7 +9,7 @@ extension LinkToMention on String {
|
|||
///
|
||||
/// Returns the decoded identifier (e.g. "#room:matrix.org")
|
||||
/// or null if this is not a Matrix link.
|
||||
String get mention {
|
||||
String? get mention {
|
||||
final trimmed = trim();
|
||||
|
||||
final matrixTo = RegExp(
|
||||
|
|
@ -39,6 +39,6 @@ extension LinkToMention on String {
|
|||
} catch (_) {}
|
||||
}
|
||||
|
||||
return this;
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue