Skip to content

Update urlify.js#22

Open
annamatveev wants to merge 1 commit intocareercup:masterfrom
annamatveev:patch-1
Open

Update urlify.js#22
annamatveev wants to merge 1 commit intocareercup:masterfrom
annamatveev:patch-1

Conversation

@annamatveev
Copy link
Copy Markdown

Adding trim to remove spaces in the beginning or the end of the string.

Copy link
Copy Markdown
Collaborator

@profnandaa profnandaa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks too for your PR here. I'm going to check in context then merge.

var urlify = function(str, length) {
// have a pointer to check from start to end
var strArr = str.split('');
var strArr = str.trim().split('');
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this fix the comments in line 7? 🤔

@profnandaa profnandaa self-assigned this Oct 2, 2018
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

Successfully merging this pull request may close these issues.

2 participants