fix matrix.to link regex

This commit is contained in:
Henry Hiles 2026-02-08 11:56:16 -05:00
commit 6c0c66cae5
No known key found for this signature in database
2 changed files with 3 additions and 2 deletions

View file

@ -36,10 +36,11 @@ A simple and user-friendly Matrix client made with Flutter and the Matrix Dart S
- [ ] Searching
- [ ] Creating (Rooms, Spaces, and DMs)
- [x] Joining
- [ ] Parse vias
- [x] Using a text/uri/link
- [x] Plain text
- [x] `matrix:` Uri
- [ ] Matrix.to link: I just need to fix my regex, I should do this soon.
- [x] Matrix.to link: I just need to fix my regex, I should do this soon.
- [ ] From space
- [ ] Exploring
- [x] Leaving

View file

@ -13,7 +13,7 @@ extension LinkToMention on String {
final trimmed = trim();
final matrixTo = RegExp(
r"^https?://matrix\.to/#/([^/?#]+)",
r"^https?://matrix\.to/#/(.[^/?#]+)",
caseSensitive: false,
);