Skip to content

Commit

Permalink
✅ test case for cure53#372
Browse files Browse the repository at this point in the history
Add test case for sanitizing white space character returning empty
string.

See: cure53#372
  • Loading branch information
peterblazejewicz committed Oct 21, 2019
1 parent 967af07 commit 8079d13
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/test-suite.js
Expand Up @@ -520,6 +520,7 @@ module.exports = function(DOMPurify, window, tests, xssTests) {
'<svg keep="me"></svg>',
"<svg xmlns=\"http://www.w3.org/2000/svg\" keep=\"me\" />"
] );
assert.equal( DOMPurify.sanitize( ' ', {USE_PROFILES: {html: true}} ), '' );
});
QUnit.test( 'Config-Flag tests: ALLOWED_URI_REGEXP', function(assert) {
var tests = [
Expand Down

0 comments on commit 8079d13

Please sign in to comment.