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;
}