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.
1 parent c65ef03 commit 940dd93Copy full SHA for 940dd93
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