fix
This commit is contained in:
parent
6516ff04fc
commit
8a140a0a97
|
@ -41,7 +41,7 @@ all_template.each do |folder|
|
|||
texts = File.read(filename)
|
||||
texts_html = Nokogiri::HTML.parse(texts)
|
||||
if texts_html.css('.navbar-brand').length == 1
|
||||
new_texts = texts.gsub(texts_html.css('.navbar-brand').to_s,change_text)
|
||||
new_texts = texts.gsub(texts_html.css('.navbar-brand').to_s.gsub("%7B",'{').gsub('%7D','}'),change_text)
|
||||
File.open(filename,'w') do |f|
|
||||
f.write new_texts
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue