1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-08 21:42:24 +03:00

Rename and reformat Element URL pattern

This is just a code style cleanup. There are no behaviour changes in this
commit.
This commit is contained in:
J. Ryan Stinnett
2020-12-21 12:46:29 +00:00
parent fa02630c4e
commit 162a5de82e
3 changed files with 11 additions and 10 deletions

View File

@@ -163,7 +163,7 @@ const transformTags: IExtendedSanitizeOptions["transformTags"] = { // custom to
attribs.target = '_blank'; // by default
const transformed = tryTransformPermalinkToLocalHref(attribs.href);
if (transformed !== attribs.href || attribs.href.match(linkifyMatrix.VECTOR_URL_PATTERN)) {
if (transformed !== attribs.href || attribs.href.match(linkifyMatrix.ELEMENT_URL_PATTERN)) {
attribs.href = transformed;
delete attribs.target;
}