fix
This commit is contained in:
1 parent
6516ff04fc
commit
8a140a0a97
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user