Skip to content
Browse files

Fixes for \r's creeping into info field.

  • Loading branch information...
1 parent 7ea8003 commit d5e7ad3967b035e88eeeea326724d604824ec365 @mdchaney committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 image_size.rb
View
4 image_size.rb
@@ -131,9 +131,9 @@ def raw_info_field
def info_field(datum)
if datum == 'content_type'
- raw_info_field.split(/\n/).first
+ raw_info_field.split(/\r?\n/).first
else
- md = /^#{datum}:(\d+)x(\d+)$/.match(raw_info_field)
+ md = /^#{datum}:(\d+)x(\d+)/.match(raw_info_field)
if md
md[1..2]
else

0 comments on commit d5e7ad3

Please sign in to comment.
Something went wrong with that request. Please try again.