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

Missing support for String.prototype.startsWith #441

Merged
merged 1 commit into from Dec 13, 2017

Conversation

WestDiscGolf
Copy link
Contributor

@WestDiscGolf WestDiscGolf commented Nov 25, 2017

To address the issue of startsWith not currently supported. This is to address #440 which is linked to #429

return false;
}

return s.Remove(0, start).StartsWith(searchStr);
Copy link
Owner

Choose a reason for hiding this comment

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

Better to use IndexOf(start, str) == 0

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Cool. Thanks for the feedback. Will update asap :-)

@sebastienros
Copy link
Owner

I did all the fixes, can you try to rebase the commit on top of dev? Or squash everything on this same branch? Github prevents me from doing it from the UI right now.

@WestDiscGolf
Copy link
Contributor Author

@sebastienros All done :-)

@sebastienros
Copy link
Owner

image

@WestDiscGolf
Copy link
Contributor Author

Sorry about that, obviously done it wrong. Not feeling great so will take another look in the morning.

@sebastienros
Copy link
Owner

Don't worry, I will just do it

@WestDiscGolf
Copy link
Contributor Author

@sebastienros thanks :-)

@WestDiscGolf WestDiscGolf deleted the startsWith branch December 14, 2017 08:22
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.

None yet

2 participants