This commit is contained in:
BoHung Chiu 2021-12-16 11:23:46 +08:00
parent e636be4b4c
commit 8cb9be6303
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ all_template.each do |folder|
texts = File.read(filename).force_encoding('UTF-8')
new_texts = texts.gsub(/<.*javascript_include_tag.*bootstrap.*>/,"<%= javascript_include_tag \"bootstrap.min\"%>")
bootstrap_count = 0
new_texts.gsub("<%= javascript_include_tag \"bootstrap.min\"%>"){|t|
new_texts = new_texts.gsub("<%= javascript_include_tag \"bootstrap.min\"%>"){|t|
bootstrap_count += 1
(bootstrap_count > 1) ? "" : t
}