Skip to content

Commit

Permalink
Merge pull request #142 from DanMeakin/patch-1
Browse files Browse the repository at this point in the history
Fix when opening spreadsheet with space in filename
  • Loading branch information
simonoff committed Jul 30, 2014
2 parents 9e1b969 + 3c6b595 commit 9fb1bd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/roo/spreadsheet.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def open(path, options = {})
options[:file_warning] = :ignore
".#{options.delete(:extension)}".gsub(/[.]+/, ".")
else
File.extname((path =~ URI::regexp) ? URI.parse(path).path : path)
File.extname((path =~ URI::regexp) ? URI.parse(URI.encode(path)).path : path)
end

case extension.downcase
Expand Down

0 comments on commit 9fb1bd5

Please sign in to comment.