Skip to content

Commit 94ba86d

Browse files
committed
Allow only html doctype
1 parent f7553b7 commit 94ba86d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

dist/purify.cjs.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/purify.cjs.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/regexp.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ export const IS_SCRIPT_OR_DATA = seal(/^(?:\w+script|data):/i);
1212
export const ATTR_WHITESPACE = seal(
1313
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g // eslint-disable-line no-control-regex
1414
);
15-
export const DOCTYPE_NAME = seal(/^[a-z_.:]+$/i);
15+
export const DOCTYPE_NAME = seal(/^html$/i);

0 commit comments

Comments
 (0)