This commit is contained in:
chiu 2020-08-10 14:51:09 +08:00
parent cd99de4316
commit 2bdb5cc350
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ all_template.each do |folder|
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
puts ['prefix']
puts ['prefix',new_texts.scan(/<.*javascript_include_tag.*\/jquery\.min.*>|<.*javascript_include_tag.*\/jquery-1\.11\.0\.min.*>/)]
new_texts = new_texts.gsub(/<.*javascript_include_tag.*\/jquery\.min.*>|<.*javascript_include_tag.*\/jquery-1\.11\.0\.min.*>/,"<%= javascript_include_tag \"jquery.min\"%>\n<%= javascript_include_tag \"jquery_prefix\"%>")
end
if texts != new_texts