mirror of
https://github.com/discourse/discourse.git
synced 2024-12-16 13:46:28 +08:00
FIX: Travis failure
This commit is contained in:
parent
adb1e2cbc8
commit
40d91ff504
|
@ -68,7 +68,7 @@ module PrettyText
|
||||||
apply_es6_file(ctx, root_path, Regexp.last_match[2])
|
apply_es6_file(ctx, root_path, Regexp.last_match[2])
|
||||||
elsif l =~ /\/\/= require_tree (\.\/)?(.*)$/
|
elsif l =~ /\/\/= require_tree (\.\/)?(.*)$/
|
||||||
path = Regexp.last_match[2]
|
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$/, ''))
|
apply_es6_file(ctx, root_path, f.sub(root_path, '')[1..-1].sub(/\.js.es6$/, ''))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user