Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 05353d0

Browse files
authored
Merge pull request #6388 from aaronraimist/matrix-url-permitted
Add matrix: to the list of permitted URL schemes
2 parents fd9241a + 8f6458a commit 05353d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/HtmlUtils.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ const BIGEMOJI_REGEX = new RegExp(`^(${EMOJIBASE_REGEX.source})+$`, 'i');
5757

5858
const COLOR_REGEX = /^#[0-9a-fA-F]{6}$/;
5959

60-
export const PERMITTED_URL_SCHEMES = ['http', 'https', 'ftp', 'mailto', 'magnet'];
60+
export const PERMITTED_URL_SCHEMES = ['http', 'https', 'ftp', 'mailto', 'magnet', 'matrix'];
6161

6262
const MEDIA_API_MXC_REGEX = /\/_matrix\/media\/r0\/(?:download|thumbnail)\/(.+?)\/(.+?)(?:[?/]|$)/;
6363

0 commit comments

Comments
 (0)