aboutsummaryrefslogtreecommitdiffstats
path: root/core/mui/cairo_markup_generator.rb
diff options
context:
space:
mode:
Diffstat (limited to 'core/mui/cairo_markup_generator.rb')
-rw-r--r--core/mui/cairo_markup_generator.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/mui/cairo_markup_generator.rb b/core/mui/cairo_markup_generator.rb
index e84ff1f8..f2772df3 100644
--- a/core/mui/cairo_markup_generator.rb
+++ b/core/mui/cairo_markup_generator.rb
@@ -8,7 +8,7 @@ module Pango
# テキストをPango.parse_markupで安全にパースできるようにエスケープする。
def escape(text)
- text.gsub(/[<>&]/){|m| Retriever::Entity::TwitterEntity::ESCAPE_RULE[m] } end
+ text.gsub(/[<>&]/){|m| Retriever::Entity::BasicTwitterEntity::ESCAPE_RULE[m] } end
alias old_parse_markup parse_markup
@@ -26,8 +26,8 @@ module Pango
module Gdk::MarkupGenerator
- ESCAPE_KEYS = Regexp::union(*Retriever::Entity::TwitterEntity::ESCAPE_RULE.keys)
- ESCAPE_KV = Retriever::Entity::TwitterEntity::ESCAPE_RULE.method(:[])
+ ESCAPE_KEYS = Regexp::union(*Retriever::Entity::BasicTwitterEntity::ESCAPE_RULE.keys)
+ ESCAPE_KV = Retriever::Entity::BasicTwitterEntity::ESCAPE_RULE.method(:[])
# 本文を返す
def main_text