Browse files

A quote character fix from Peter Landry.

  • Loading branch information...
1 parent fe3d9f3 commit 3a9a5bcbbe4b5fef0fe03430b4710beb5740ff7f @JEG2 committed Sep 21, 2010
Showing with 6 additions and 2 deletions.
  1. +4 −0 CHANGELOG
  2. +2 −2 lib/faster_csv.rb
View
4 CHANGELOG
@@ -2,6 +2,10 @@
Below is a complete listing of changes for each revision of FasterCSV.
+== 1.5.5
+
+* Fixed a bug that prevented <tt>^</tt> from being used as <tt>:quote_char</tt>.
+
== 1.5.4
* Improved test coverage for the parser.
View
4 lib/faster_csv.rb
@@ -90,7 +90,7 @@
#
class FasterCSV
# The version of the installed library.
- VERSION = "1.5.4".freeze
+ VERSION = "1.5.5".freeze
#
# A FasterCSV::Row is part Array and part Hash. It retains an order for the
@@ -1721,7 +1721,7 @@ def init_separators(options)
@col_sep = options.delete(:col_sep)
@row_sep = options.delete(:row_sep)
@quote_char = options.delete(:quote_char)
- @quote_and_newlines = "#{@quote_char}\r\n"
+ @quote_and_newlines = "\r\n#{@quote_char}"
if @quote_char.length != 1
raise ArgumentError, ":quote_char has to be a single character String"

0 comments on commit 3a9a5bc

Please sign in to comment.