diff --git a/lib/discourse_js_processor.rb b/lib/discourse_js_processor.rb index c0ebc2210ed..49fa3a7601d 100644 --- a/lib/discourse_js_processor.rb +++ b/lib/discourse_js_processor.rb @@ -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)