matrix: URIs #112

Merged
cadence merged 8 commits from mschae/out-of-your-element:matrix-uris into main 2026-11-28 03:44:30 +00:00

8 commits

Author SHA1 Message Date
mini-bomba
3e080e8187
add % to the matrix: uri regex
in case someone (sable) decides to percent-encode the id for some reason
2026-11-19 21:51:12 +01:00
mini-bomba
b40382da08
allow & in the matrix: uri regex 2026-11-19 03:01:35 +01:00
mini-bomba
6326473296
make the matrix: uri regex stricter
some of the "new" tests found an edge case in the previous, lenient
regex pattern
making it stricter fixes the failures
2026-11-19 02:56:26 +01:00
mini-bomba
a2482ff9d2
clone some m2d event-to-message tests for matrix: uris 2026-11-19 02:55:47 +01:00
mini-bomba
d7630b60f4
use \b + negative lookahead instead of an allowlist of preceding chars
for the matrix: uri replacing
this allows it to find matrix: uris wrapped in various types of parens,
without having to manually specify all of the allowed preceding
characters
negative lookahead bans non-word characters that could be a part of an
uri
2026-11-19 01:12:02 +01:00
mini-bomba
919f3e2851
replace switch with if/else, don't encode sigils 2026-11-19 00:40:35 +01:00
mini-bomba
18e2421ac5
make matrix: uri scheme match case-insensitive 2026-11-19 00:37:14 +01:00
mini-bomba
c06356a771
convert matrix: uris to matrix.to links during m->d 2026-11-18 21:28:40 +01:00