FIX: `nil` != `false`

This commit is contained in:
Robin Ward 2020-03-26 12:47:10 -04:00
parent 6f2e3d61ee
commit 358ddb9b95
1 changed files with 2 additions and 2 deletions

View File

@ -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)