This commit is contained in:
BOHUNG 2020-03-26 19:18:11 +08:00
parent 6516ff04fc
commit 8a140a0a97
1 changed files with 1 additions and 1 deletions

View File

@ -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