chomp before regex manifest
This commit is contained in:
parent
7e80810de1
commit
648c8d27a6
|
@ -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 (\.\/)?(.*)$/
|
||||
|
|
Loading…
Reference in New Issue