You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I pasted this text "aaaaaaaaaaaaaaaaaaaaa" inside the demo I downloaded from GitHub and the error in the console is:
Uncaught RangeError: Invalid array length
at String.repeat (spray-reader.js:156)
at pivot (spray-reader.js:133)
at SprayReader.displayWordAndIncrement (spray-reader.js:81)
at spray-reader.js:68
When I click to reavel the part of script that generated it, the source code shows:
String.prototype.repeat = function( num ){
return new Array( num + 1 ).join( this ); //highlighted
}
I've fixed this for my webapp not using the piece of code that generates dots (right-weighted stuff for long words I think).
I imagine you assume that because words have the root of the meaning in the left-most part, shifting a bit the middle point of focus would be a good idea, and I think this too for English! But for example, in Italian if you missed a part of a composed words the meaning become almost impossible to understand and it can be also very misleading, because in Italian we use many already existent words put togheter to mean something else.
The word "autoferrotranviario" it's an example of compound word, it means "train" but if you only read "auto..." then the significate is "car" a that's a big difference.
4skinSkywalker
changed the title
words with a length of more than 15 characters generate errors
Words with a length of more than 15 characters generate errors
Jan 20, 2017
Words with a length of more than 15 characters generate errors
The text was updated successfully, but these errors were encountered: