This commit is contained in:
Calvin Montgomery 2018-10-21 22:18:22 -07:00
parent 5b86fb3187
commit 801d3d9be1
3 changed files with 11 additions and 2 deletions

View file

@ -5,7 +5,7 @@ describe('XSS', () => {
describe('sanitizeHTML', () => {
it('behaves consistently w.r.t. special chars used in emotes', () => {
const input = '`^~=| _-,;:!?/."()[]{}@$*\\&#%+á\t';
const expected = '`^~=| _-,;:!?/."()[]{}@$*\\\\&#%+á\t';
const expected = '`^~=| _-,;:!?/."()[]{}@$*\\\\&#%+á\t';
assert.strictEqual(XSS.sanitizeHTML(input), expected);
});
});