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 - [ ] Searching
- [ ] Creating (Rooms, Spaces, and DMs) - [ ] Creating (Rooms, Spaces, and DMs)
- [x] Joining - [x] Joining
- [ ] Parse vias
- [x] Using a text/uri/link - [x] Using a text/uri/link
- [x] Plain text - [x] Plain text
- [x] `matrix:` Uri - [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 - [ ] From space
- [ ] Exploring - [ ] Exploring
- [x] Leaving - [x] Leaving

View file

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