Skip to content

Conversation

@DavidRip
Copy link

Had an issue while trying to implement an empty delimiter (""). Please see my fix below.

@jprichardson
Copy link
Owner

Please include a test that demonstrates the error before your fix. The test should pass after your fix is applied. Thanks.

@ghost
Copy link

ghost commented Feb 27, 2016

Not a bug, an empty string is a truthy value. By changing it to the proposed changes you lose the implicit method contract. There shouldn't be any cases where an empty delimiter would be needed, but if it is needed, it should follow the method contract and return a string delimited by "".

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