Encode 2028 & 2029 chars in text form, close #7

This commit is contained in:
Vitaly Puzrin
2020-05-18 08:02:04 +03:00
parent 193738762a
commit 9d6bc548cd
4 changed files with 14 additions and 3 deletions

View File

@@ -26,4 +26,8 @@ describe('unhomoglyph', function () {
assert.strictEqual(unhomoglyph('1abcаа'), 'labcaa');
});
it('2028 & 2029 should be ok after replace in updater', function () {
assert.strictEqual(data['\u2028'], ' ');
assert.strictEqual(data['\u2029'], ' ');
});
});