Skip to content

Conversation

@devinus
Copy link
Contributor

@devinus devinus commented Jul 8, 2013

Fixes #1394

@yrashk
Copy link
Contributor

yrashk commented Jul 8, 2013

👍

Copy link
Member

Choose a reason for hiding this comment

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

Can you please add a test for String.split with a regex and Regex.split too? :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done. Although, this just pointed out to me that Regex.split is a reversed arg order from String.split!

Copy link
Member

Choose a reason for hiding this comment

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

That's ok, the "subject" of a Regex is a regex, not a string. :)

josevalim pushed a commit that referenced this pull request Jul 9, 2013
String.split("") should be [""], %w() should be []
@josevalim josevalim merged commit ad3cf4e into elixir-lang:master Jul 9, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

empty %w

3 participants