Skip to content

Commit

Permalink
Added missing modifier flag
Browse files Browse the repository at this point in the history
  • Loading branch information
cure53 committed Oct 15, 2019
1 parent a63c1cb commit 7505686
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion dist/purify.cjs.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/purify.cjs.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/purify.es.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/purify.es.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/purify.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/purify.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/purify.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/purify.min.js.map

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions src/purify.js
Original file line number Diff line number Diff line change
Expand Up @@ -902,9 +902,10 @@ function createDOMPurify(window = getGlobal()) {
/* Take care of an mXSS pattern using namespace switches */
if (
/svg|math/i.test(currentNode.namespaceURI) &&
new RegExp('</(' + Object.keys(FORBID_CONTENTS).join('|') + ')').test(
value
)
new RegExp(
'</(' + Object.keys(FORBID_CONTENTS).join('|') + ')',
'i'
).test(value)
) {
_removeAttribute(name, currentNode);
continue;
Expand Down

0 comments on commit 7505686

Please sign in to comment.