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.
- package/index.js +2 -1
- 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