diff options
author | Kouhei Sutou <kou@clear-code.com> | 2019-04-23 05:54:44 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2019-07-14 23:07:31 +0900 |
commit | 198281a71d95c1a48445dc6e913bc1bd62350054 (patch) | |
tree | f8807d290bd0391312e4cf5b20d679cdeb9e3b35 /lib/csv | |
parent | 8c0edbd79d59789b9543d00322d6bde72f86bfda (diff) |
[ruby/csv] Fix a bug that strip: true removes newlines
https://github.com/ruby/csv/commit/5540d35a30
Diffstat (limited to 'lib/csv')
-rw-r--r-- | lib/csv/parser.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/csv/parser.rb b/lib/csv/parser.rb index 85252203e4..2ef2a28ff3 100644 --- a/lib/csv/parser.rb +++ b/lib/csv/parser.rb @@ -429,7 +429,7 @@ class CSV end @need_robust_parsing = true elsif @strip - strip_values = " \t\r\n\f\v" + strip_values = " \t\f\v" @escaped_strip = strip_values.encode(@encoding) if @quote_character @strip_value = Regexp.new("[#{strip_values}]+".encode(@encoding)) |