Skip to content

Commit

Permalink
Use dup to ensure exact compatibility with original impl
Browse files Browse the repository at this point in the history
  • Loading branch information
mattbrictson committed Dec 25, 2024
1 parent 3780f3d commit a399605
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/plist/parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def tag_start(name, attributes)

def text(contents)
if @open.last
@open.last.text ||= String.new
@open.last.text ||= ''.dup
@open.last.text.concat(contents)
end
end
Expand Down

0 comments on commit a399605

Please sign in to comment.