FIX: Travis failure

This commit is contained in:
Robin Ward 2016-08-10 13:20:39 -04:00 committed by Guo Xiang Tan
parent adb1e2cbc8
commit 40d91ff504

View File

@ -68,7 +68,7 @@ module PrettyText
apply_es6_file(ctx, root_path, Regexp.last_match[2])
elsif l =~ /\/\/= require_tree (\.\/)?(.*)$/
path = Regexp.last_match[2]
Dir["#{root_path}/#{path}/**"].each do |f|
Dir["#{root_path}/#{path}/**"].sort.each do |f|
apply_es6_file(ctx, root_path, f.sub(root_path, '')[1..-1].sub(/\.js.es6$/, ''))
end
end