mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 11:44:49 +08:00
FIX: nil
!= false
This commit is contained in:
parent
6f2e3d61ee
commit
358ddb9b95
|
@ -56,8 +56,8 @@ class DiscourseJsProcessor
|
|||
embed-application
|
||||
).any? { |f| relative_path == "#{js_root}/#{f}.js" }
|
||||
|
||||
relative_path =~ /^#{js_root}\/[^\/]+\// ||
|
||||
relative_path =~ /^#{test_root}\/[^\/]+\//
|
||||
!!(relative_path =~ /^#{js_root}\/[^\/]+\// ||
|
||||
relative_path =~ /^#{test_root}\/[^\/]+\//)
|
||||
end
|
||||
|
||||
def self.skip_module?(data)
|
||||
|
|
Loading…
Reference in New Issue
Block a user