From 648c8d27a636005f1850497134b506f283a70d5c Mon Sep 17 00:00:00 2001 From: Vinoth Kannan Date: Thu, 25 Aug 2016 17:15:29 +0530 Subject: [PATCH] chomp before regex manifest --- lib/pretty_text.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/pretty_text.rb b/lib/pretty_text.rb index c31285cd8c1..23088e980ff 100644 --- a/lib/pretty_text.rb +++ b/lib/pretty_text.rb @@ -64,6 +64,7 @@ module PrettyText manifest = File.read("#{Rails.root}/app/assets/javascripts/pretty-text-bundle.js") root_path = "#{Rails.root}/app/assets/javascripts/" manifest.each_line do |l| + l = l.chomp if l =~ /\/\/= require (\.\/)?(.*)$/ apply_es6_file(ctx, root_path, Regexp.last_match[2]) elsif l =~ /\/\/= require_tree (\.\/)?(.*)$/