We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 021c8bc commit 1e2864fCopy full SHA for 1e2864f
src/raven.js
@@ -561,7 +561,7 @@ function objectMerge(obj1, obj2) {
561
}
562
563
function truncate(str, max) {
564
- return str.length <= max ? str : str.substr(0, max) + '…';
+ return str.length <= max ? str : str.substr(0, max) + '\u2026';
565
566
567
function getHttpData() {
test/raven.test.js
@@ -202,7 +202,7 @@ describe('globals', function() {
202
203
describe('truncate', function() {
204
it('should work as advertised', function() {
205
- assert.equal(truncate('lolol', 3), 'lol…');
+ assert.equal(truncate('lolol', 3), 'lol\u2026');
206
assert.equal(truncate('lolol', 10), 'lolol');
207
assert.equal(truncate('lol', 3), 'lol');
208
});
0 commit comments