Add a top anchor to the file match regex.
parent
49adde2095
commit
dbdb4afb8c
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue