Escape arguments in Translator.compile

This commit is contained in:
Peter Jaszkowiak
2016-12-10 20:41:49 -07:00
parent a81aad61ab
commit bb5fe0cc83
2 changed files with 13 additions and 2 deletions

View File

@@ -251,5 +251,13 @@ describe('Translator static methods', function () {
);
done();
});
it('should escape `%` and `,` in arguments', function (done) {
assert.strictEqual(
Translator.compile('amazing:cool', '100% awesome!', 'one, two, and three'),
'[[amazing:cool, 100% awesome!, one, two, and three]]'
);
done();
});
});
});