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