Fix compilation error.
This commit is contained in:
parent
05733b6bc9
commit
43eb9c022d
@ -4,7 +4,7 @@ export const removeAttachmentLinks = (html) => {
|
|||||||
return sanitize(html, {
|
return sanitize(html, {
|
||||||
allowedTags: false,
|
allowedTags: false,
|
||||||
allowedAttributes: false,
|
allowedAttributes: false,
|
||||||
exclusiveFilter: ({ tag, attribs: { class: klass } }) => tag === 'a' && klass.match(/attachment/)
|
exclusiveFilter: ({ tag, attribs }) => tag === 'a' && attribs.class.match(/attachment/)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user