case insensititvy

This commit is contained in:
Henry Jameson 2023-06-05 21:57:36 +03:00
parent 10e28f6c1d
commit 0109724a5f
1 changed files with 2 additions and 2 deletions

View File

@ -150,8 +150,8 @@ export default {
if (Array.isArray(item)) { if (Array.isArray(item)) {
const [opener, children, closer] = item const [opener, children, closer] = item
let Tag = getTagName(opener) let Tag = getTagName(opener)
if (Tag === 'script') Tag = 'js-exploit' if (Tag.toLowerCase() === 'script') Tag = 'js-exploit'
if (Tag === 'style') Tag = 'css-exploit' if (Tag.toLowerCase() === 'style') Tag = 'css-exploit'
const fullAttrs = getAttrs(opener, () => true) const fullAttrs = getAttrs(opener, () => true)
const attrs = getAttrs(opener) const attrs = getAttrs(opener)
const previouslyMentions = currentMentions !== null const previouslyMentions = currentMentions !== null