diff options
author | Burdette Lamar <[email protected]> | 2020-06-24 16:04:25 -0500 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2020-07-20 02:32:53 +0900 |
commit | d9eff306f5806c6a1b79019ec44395e4cc816218 (patch) | |
tree | ff5b302f3beba9a165b88d8b95aca8541296d34a /doc/csv/options/parsing/liberal_parsing.rdoc | |
parent | 920a16893ad5b76bcb357d45f2c0b9d91d09268e (diff) |
[ruby/csv] Organize files in doc/ (#145)
https://github.com/ruby/csv/commit/bc9ea859b0
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3332
Diffstat (limited to 'doc/csv/options/parsing/liberal_parsing.rdoc')
-rw-r--r-- | doc/csv/options/parsing/liberal_parsing.rdoc | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/doc/csv/options/parsing/liberal_parsing.rdoc b/doc/csv/options/parsing/liberal_parsing.rdoc new file mode 100644 index 0000000000..b8b9b00c98 --- /dev/null +++ b/doc/csv/options/parsing/liberal_parsing.rdoc @@ -0,0 +1,19 @@ +====== Option +liberal_parsing+ + +Specifies the boolean value that determines whether +CSV will attempt to parse input not conformant with RFC 4180, +such as double quotes in unquoted fields. + +Default value: + CSV::DEFAULT_OPTIONS.fetch(:liberal_parsing) # => false + +For examples in this section: + str = 'is,this "three, or four",fields' + +Without +liberal_parsing+: + # Raises CSV::MalformedCSVError (Illegal quoting in str 1.) + CSV.parse_line(str) + +With +liberal_parsing+: + ary = CSV.parse_line(str, liberal_parsing: true) + ary # => ["is", "this \"three", " or four\"", "fields"] |