matrix: URIs #112
1 changed files with 1 additions and 1 deletions
add % to the matrix: uri regex
in case someone (sable) decides to percent-encode the id for some reason
commit
3e080e8187
|
|
@ -564,7 +564,7 @@ function serialiseReplyContent(doc) {
|
|||
* @returns {string}
|
||||
*/
|
||||
function convertMatrixUris(input) {
|
||||
return input.replace(/(?<![\/:@?#])\b(matrix:[\w\/=?:\.&-]+)/gi, (match, uri) => {
|
||||
return input.replace(/(?<![\/:@?#])\b(matrix:[\w\/=?:\.&%-]+)/gi, (match, uri) => {
|
||||
// technically the url might be html-encoded, but since we're gonna splice the url back together,
|
||||
// and none of the characters that might get html-encoded are actually important to us, it doesn't really matter
|
||||
// (most of the case it's the query string, and we just copy it over anyway)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue