-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
Respect escaped commas #78
Comments
Thanks for posting the suggestion. The plug-in does support escaping of quote characters by using double quote characters, see example data below
And any value that also contains the separator character (be it comma, semicolon etc.) can be escaped by adding quotes around the value as a whole, see the following example data:
As for using a slash for escaping certain characters, that is common for code like in C++/Java/Python etc. but afaik I haven't seen this being used in practice in csv data files. This would require quite some effort to include in the plugin, because both the lexer (syntax highlighting) and the parser/validator would have to be changed. So is this an actual use-case, is there a system or data-supplier that formats the data using a slash to escape commas? |
Sorry for the late reply 😄 Our decades old desktop software relies on that detail it seems, and it doesnt seem to cause problems programmatically We can close the issue if you, understandably, don't want to pick up on it |
Would love to see this plugin respect escaped quotes and doesn't falsely format them
At the same time, I've been messing with another use-case dealing with commas and whitelisting escaped commas. I've used the following regex, and it might be applicable here 😄
The text was updated successfully, but these errors were encountered: