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

Allow specifying backslash-escaped delimiters #55

Merged
merged 3 commits into from
Dec 15, 2023

Conversation

aotimme
Copy link
Owner

@aotimme aotimme commented Dec 15, 2023

This change makes two changes to how delimiters are specified:

  1. It allows other backslash-escaped delimiters, such as those that represent hexadecimal or unicode characters (like \x01 per How to change to delim from "\x01" to others? #54). Previously we had a special case to handle the tab-delimiter \t.
  2. It will now exit with an error if the provided delimiter does not evaluate to exactly 1 rune. Previously it would silently accept it, which is not great since it could lead to some strange behavior for users.

Fixes #54

@aotimme aotimme merged commit 52ab92e into master Dec 15, 2023
@aotimme aotimme deleted the fix-get-delimiter-from-string branch December 15, 2023 18:43
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.

How to change to delim from "\x01" to others?
1 participant