We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c65ef03 + 940dd93 commit ff957f0Copy full SHA for ff957f0
lib/docx/document.rb
@@ -30,8 +30,7 @@ def initialize(path_or_io, options = {})
30
@zip = Zip::File.open_buffer(path_or_io)
31
end
32
33
- document = @zip.find_entry('word/document.xml')
34
- document ||= @zip.find_entry('word/document2.xml')
+ document = @zip.glob('word/document*.xml').first
35
raise Errno::ENOENT if document.nil?
36
37
@document_xml = document.get_input_stream.read
0 commit comments