mirror of
https://github.com/discourse/discourse.git
synced 2025-03-21 03:16:15 +08:00
DEV: Replace Rails ends_with? with Ruby end_with? (#12507)
This commit is contained in:
parent
26e1ae17c4
commit
9dca7fe9a3
@ -755,9 +755,9 @@ class Plugin::Instance
|
|||||||
f_str = f.to_s
|
f_str = f.to_s
|
||||||
if File.directory?(f)
|
if File.directory?(f)
|
||||||
yield [f, true]
|
yield [f, true]
|
||||||
elsif f_str.ends_with?(".js.es6") || f_str.ends_with?(".hbs") || f_str.ends_with?(".hbr")
|
elsif f_str.end_with?(".js.es6") || f_str.end_with?(".hbs") || f_str.end_with?(".hbr")
|
||||||
yield [f, false]
|
yield [f, false]
|
||||||
elsif transpile_js && f_str.ends_with?(".js")
|
elsif transpile_js && f_str.end_with?(".js")
|
||||||
yield [f, false]
|
yield [f, false]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user