FIX: Restore support for `.js.es6` files in PrettyText (#25588)
Regressed in 1757a688c4
https://meta.discourse.org/t/294155
This commit is contained in:
parent
32ee0e3c0a
commit
dea753a204
|
@ -105,8 +105,8 @@ module PrettyText
|
||||||
|
|
||||||
Discourse.plugins.each do |plugin|
|
Discourse.plugins.each do |plugin|
|
||||||
Dir
|
Dir
|
||||||
.glob("#{plugin.directory}/assets/javascripts/**/discourse-markdown/**/*.js")
|
.glob("#{plugin.directory}/assets/javascripts/**/discourse-markdown/**/*.{js,js.es6}")
|
||||||
.filter { |a| File.file?(a) && a.end_with?(".js", ".js.es6") }
|
.filter { |a| File.file?(a) }
|
||||||
.each do |f|
|
.each do |f|
|
||||||
module_name =
|
module_name =
|
||||||
f.sub(%r{\A.+assets/javascripts/}, "discourse/plugins/#{plugin.name}/").sub(
|
f.sub(%r{\A.+assets/javascripts/}, "discourse/plugins/#{plugin.name}/").sub(
|
||||||
|
|
Loading…
Reference in New Issue