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