Skip to content

Commit

Permalink
replace '*' by '*' on text due to witter-gem problem
Browse files Browse the repository at this point in the history
  • Loading branch information
kazunetakahashi committed May 8, 2021
1 parent 0426a89 commit 64312f6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions news.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def make_news(para, type)
if type == :misc
@text = "『" + @text + "』"
end
@text.gsub!(/\*/, "*")
# p @text
@urls = []
para.css('a').each{|link|
Expand All @@ -60,6 +61,7 @@ def News.parse_url(str)
ans.gsub!(/'/, "%27")
ans.gsub!(/@/, "%40")
ans.gsub!(/\.$/, "%2E")
ans.gsub!(/\*$/, "%2A")
if !uri.scheme
ans = "https://www.ms.u-tokyo.ac.jp/~yasuyuki/" + ans
end
Expand Down

0 comments on commit 64312f6

Please sign in to comment.