-
Notifications
You must be signed in to change notification settings - Fork 0
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 quote & space characters to be configured #1
Conversation
I think this will be useful! I have a couple questions, though:
|
Good call on both counts.. un momento |
Also rename spaceChar to spaceCharacter to match the other naming
// Here we go, backslash escaping | ||
// As a special case, always allow quoteCharacters, rawQuoteCharacters, | ||
// and spaceCharacters to be escaped | ||
var doubleQuoteChar = findElement(self.doubleQuoteCharacters, str[i]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does updating doubleQuoteChar
here break quote matching? If doubleQuoteCharacters = ['"','$']
, would this cause "\$"
to fail with a missing close quote error?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope, added a test showing that
@LinuxMercedes I'm going through my old open PRs. I assume you have no interest in this now so I should just decide myself if I want to close or merge it? |
Yeah, I ended up needing lower-level parser control for my usecase. Thanks for writing this, though! |
Abandoning this. |
Will this fit your needs, @LinuxMercedes?
Review welcome as well if you so desire