Closed danilosampaio closed 9 years ago
When a \n is inserted immediately before/after the maxLength position, it results in a empty string element in the message array, so that the following check fails:
\n
maxLength
if (!array[index + 1]) {
This bug causes the broken frame reported in the issue #9.
The following if statement works well:
if (index === array.length - 1) {
Fixes #9.
Yay, thanks! :)
When a
\n
is inserted immediately before/after themaxLength
position, it results in a empty string element in the message array, so that the following check fails:if (!array[index + 1]) {
This bug causes the broken frame reported in the issue #9.
The following if statement works well:
if (index === array.length - 1) {
Fixes #9.