This commit is contained in:
chiu 2020-08-10 14:46:29 +08:00
parent b0b010d274
commit 72203371c3
1 changed files with 1 additions and 0 deletions

View File

@ -46,6 +46,7 @@ all_template.each do |folder|
filename = folder+'partial/_head.html.erb'
texts = File.read(filename).force_encoding('UTF-8')
new_texts = texts.gsub(/<.*javascript_include_tag.*bootstrap.*>/,"<%= javascript_include_tag \"bootstrap.min\"%>")
puts ['include?',new_texts.include?('jquery_prefix')]
if new_texts.include?('jquery_prefix')
new_texts = new_texts.gsub(/<.*javascript_include_tag.*\/jquery\.min.*>|<.*javascript_include_tag.*\/jquery-1\.11\.0\.min.*>/,"<%= javascript_include_tag \"jquery.min\"%>")
else