Support more unnecessary room link percent-encodes
This commit is contained in:
parent
f42d8a80eb
commit
85b9e4743f
1 changed files with 1 additions and 1 deletions
|
|
@ -384,7 +384,7 @@ function linkEndOfMessageSpriteSheet(content) {
|
|||
*/
|
||||
async function handleRoomOrMessageLinks(input, di) {
|
||||
let offset = 0
|
||||
for (const match of [...input.matchAll(/("?https:\/\/matrix.to\/#\/((?:#|%23|!)[^"/, ?)]+)(?:\/(\$[^"/ ?)]+))?(?:\?[^",:!? )]*?)?)(">|[,<\n )]|$)/g)]) {
|
||||
for (const match of [...input.matchAll(/("?https:\/\/matrix.to\/#\/((?:#|%23|!|%21)[^"/, ?)]+)(?:\/((?:\$|%24)[^"/ ?)]+))?(?:\?[^",:!? )]*?)?)(">|[,<\n )]|$)/g)]) {
|
||||
assert(typeof match.index === "number")
|
||||
let [_, attributeValue, roomID, eventID, endMarker] = match
|
||||
let result
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue