From 8a140a0a97477cd805275c7e794335de1652c7f0 Mon Sep 17 00:00:00 2001 From: BOHUNG Date: Thu, 26 Mar 2020 19:18:11 +0800 Subject: [PATCH] fix --- patchfile.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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