Skip to content

Commit 314b069

Browse files
committed
address feedback
1 parent 930c9dc commit 314b069

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/zip/zip.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1259,8 +1259,8 @@ def read_e_o_c_d(io) #:nodoc:
12591259
@cdirOffset = ZipEntry::read_zip_long(buf)
12601260
commentLength = ZipEntry::read_zip_short(buf)
12611261
@comment = buf.read(commentLength)
1262-
# remove trailing \n or \f or \r symbol
1263-
buf.gsub!(/\s/,'')
1262+
# remove trailing \n symbol
1263+
buf.chomp!
12641264
raise ZipError, "Zip consistency problem while reading eocd structure" unless buf.size == 0
12651265
end
12661266

0 commit comments

Comments
 (0)