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

Split on spaces, not all non-word characters #2

Closed
wants to merge 1 commit into from

Conversation

ismyrnow
Copy link

The current behavior splits on all non-word characters, which included dots and dashes. Based on the discussion in #1, instead of adding new functionality, this PR changes the previous functionality to more closely match String.prototype.split(), while supporting quoted strings.

This PR is much more minimal than #1, but still includes an updated readme and tests.

@timjrobinson
Copy link
Owner

Thanks! It looks like it has a merge conflict though. Can you make the test the same as the example in the readme please. Don't need to use "this is dog" in the test :)

@ismyrnow
Copy link
Author

Will do. I didn't realize I was a few commits behind as well, so I'll catch my branch up to hopefully avoid any merge conflicts.

@timjrobinson
Copy link
Owner

I've merged these changes into #3

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