Add a top anchor to the file match regex.

bug/bundler_fix
Tod Beardsley 2014-08-26 16:19:29 -05:00
parent 49adde2095
commit dbdb4afb8c
No known key found for this signature in database
GPG Key ID: 1EFFB682ADB9F193
1 changed files with 3 additions and 2 deletions

View File

@ -50,8 +50,9 @@ end
changed_files.each_line do |fname| changed_files.each_line do |fname|
fname.strip! fname.strip!
next unless File.exist?(fname) and File.file?(fname) next unless File.exist?(fname)
next unless fname =~ /modules.+\.rb/ next unless File.file?(fname)
next unless fname =~ /^modules.+\.rb/
files_to_check << fname files_to_check << fname
end end