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:
parent
fa02630c4e
commit
162a5de82e
3 changed files with 11 additions and 10 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue