Closed ishakalra closed 7 years ago
In the truncate function ( embed.js/src/js/modules/utils.js ), if n is same as string.length, an issue arises. truncate('Hello',5) whill return 'Hell', but shouldn't it return 'Hell...'? I think there should be an equality sign here.
In the truncate function ( embed.js/src/js/modules/utils.js ), if n is same as string.length, an issue arises. truncate('Hello',5) whill return 'Hell', but shouldn't it return 'Hell...'? I think there should be an equality sign here.