Skip to content

Commit

Permalink
Capitalised const variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
tiny-ben-tran committed May 11, 2022
1 parent 73f2168 commit f4c5f80
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions 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.

4 changes: 2 additions & 2 deletions 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.

4 changes: 2 additions & 2 deletions 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.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/purify.js
Expand Up @@ -564,7 +564,7 @@ function createDOMPurify(window = getGlobal()) {
// namespace. We need to specify them explicitly
// so that they don't get erroneously deleted from
// HTML namespace.
const commonSvgAndHTMLElements = addToSet({}, [
const COMMON_SVG_AND_HTML_ELEMENTS = addToSet({}, [
'title',
'style',
'font',
Expand Down Expand Up @@ -670,7 +670,7 @@ function createDOMPurify(window = getGlobal()) {
// or SVG and should never appear in HTML namespace
return (
!ALL_MATHML_TAGS[tagName] &&
(commonSvgAndHTMLElements[tagName] || !ALL_SVG_TAGS[tagName])
(COMMON_SVG_AND_HTML_ELEMENTS[tagName] || !ALL_SVG_TAGS[tagName])
);
}

Expand Down

0 comments on commit f4c5f80

Please sign in to comment.