lib/java-properties/encoding/special_chars.rb in java-properties-0.2.0 vs lib/java-properties/encoding/special_chars.rb in java-properties-0.2.1

- old
+ new

@@ -8,11 +8,12 @@ # @return [Hash] ESCAPING = { "\t" => '\\t', "\r" => '\\r', "\n" => '\\n', - "\f" => '\\f' + "\f" => '\\f', + "\\" => '\\\\', }.freeze # Lookup table to remove escaping from special chars # @return [Hash] DESCAPING = ESCAPING.invert.freeze @@ -43,6 +44,6 @@ text end end end -end \ No newline at end of file +end