sanitize-html 2.13.0 → 2.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +2 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -431,12 +431,13 @@ function sanitizeHtml(html, options, _recursing) {
431
431
  const allowedWildcardClasses = allowedClassesMap['*'];
432
432
  const allowedSpecificClassesGlob = allowedClassesGlobMap[name];
433
433
  const allowedSpecificClassesRegex = allowedClassesRegexMap[name];
434
+ const allowedWildcardClassesRegex = allowedClassesRegexMap['*'];
434
435
  const allowedWildcardClassesGlob = allowedClassesGlobMap['*'];
435
436
  const allowedClassesGlobs = [
436
437
  allowedSpecificClassesGlob,
437
438
  allowedWildcardClassesGlob
438
439
  ]
439
- .concat(allowedSpecificClassesRegex)
440
+ .concat(allowedSpecificClassesRegex, allowedWildcardClassesRegex)
440
441
  .filter(function (t) {
441
442
  return t;
442
443
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sanitize-html",
3
- "version": "2.13.0",
3
+ "version": "2.13.1",
4
4
  "description": "Clean up user-submitted HTML, preserving allowlisted elements and allowlisted attributes on a per-element basis",
5
5
  "sideEffects": false,
6
6
  "main": "index.js",