Fix compilation error.

This commit is contained in:
Roger Braun 2016-11-12 23:18:27 +01:00
parent 05733b6bc9
commit 43eb9c022d
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ export const removeAttachmentLinks = (html) => {
return sanitize(html, {
allowedTags: false,
allowedAttributes: false,
exclusiveFilter: ({ tag, attribs: { class: klass } }) => tag === 'a' && klass.match(/attachment/)
exclusiveFilter: ({ tag, attribs }) => tag === 'a' && attribs.class.match(/attachment/)
})
}