Skip to content

Handle empty string in ACSV::Detect.separator#1

Open
Slike9 wants to merge 1 commit into
wvengen:masterfrom
Slike9:handle-empty-string-in-separator
Open

Handle empty string in ACSV::Detect.separator#1
Slike9 wants to merge 1 commit into
wvengen:masterfrom
Slike9:handle-empty-string-in-separator

Conversation

@Slike9
Copy link
Copy Markdown

@Slike9 Slike9 commented Nov 2, 2018

Now ACSV::Detect.separator('') fails with error

NoMethodError: undefined method 'encoding' for nil:NilClass

This pr fixes it, returning nil for empty string.

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.

1 participant