Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Words with a length of more than 15 characters generate errors #6

Open
4skinSkywalker opened this issue Jan 20, 2017 · 2 comments
Open

Comments

@4skinSkywalker
Copy link

4skinSkywalker commented Jan 20, 2017

Words with a length of more than 15 characters generate errors

@jeffpeck-intellify
Copy link

Care to post the errors?

@4skinSkywalker
Copy link
Author

4skinSkywalker commented Jan 20, 2017

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 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants