diff --git a/patchfile.gemspec b/patchfile.gemspec index 661db31..1d8a681 100644 --- a/patchfile.gemspec +++ b/patchfile.gemspec @@ -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