Skip to content

Commit 999a139

Browse files
committed
Support access to diff fields by String or Symbol
1 parent 55c38d3 commit 999a139

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/csv-diff/algorithm.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def [](key)
4545
when :sibling_position
4646
@sibling_position
4747
else
48-
@fields[key]
48+
@fields[key] || @fields[key.to_s.intern] || @fields[key.to_s]
4949
end
5050
end
5151

0 commit comments

Comments
 (0)