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 longer than 6 letters are not pivoting correctly. #10

Open
baltauger opened this issue Jun 15, 2019 · 0 comments
Open

Words longer than 6 letters are not pivoting correctly. #10

baltauger opened this issue Jun 15, 2019 · 0 comments

Comments

@baltauger
Copy link

I've found that this piece of code in the pivot() function does not produce the expected results:

        word = '.......' + word;
        
        var tail = 22 - (word.length + 7);
        if(tail > 0) {
          word + ('.'.repeat(tail));
        }

However, the code in the (functional) example works:

        var tail = 22 - (word.length + 7);
        word = '.......' + word + ('.'.repeat(tail));
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

1 participant