Skip to content
Browse files

A tiny fix in a regexp in fill_db_with_pics

  • Loading branch information...
1 parent 429b8bc commit 54e6afa50cc774aa25f84147a43db1651d9e6887 @jstepien committed Aug 26, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 vote.rb
View
2 vote.rb
@@ -96,7 +96,7 @@ def fill_db_with_pics
pics.each_with_index do |name, index|
STDERR.write "\rFilling db with pics... #{index + 1}/#{pics.count}"
exif = EXIFR::JPEG.new name
- name.sub! /pics\//, ''
+ name.sub! /^pics\//, ''
Pic.create!(:name => name, :time => exif.date_time)
end
STDERR.puts " OK"

0 comments on commit 54e6afa

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