From bc9da959c7a9230820f39255dee52efba27e5219 Mon Sep 17 00:00:00 2001 From: Fukaya Temma Date: Fri, 30 Aug 2019 09:58:02 +0900 Subject: [PATCH] fix: duplicate frozen string --- lib/ruboty/adapters/slack_rtm.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ruboty/adapters/slack_rtm.rb b/lib/ruboty/adapters/slack_rtm.rb index b7078d3..82b0d8f 100644 --- a/lib/ruboty/adapters/slack_rtm.rb +++ b/lib/ruboty/adapters/slack_rtm.rb @@ -237,7 +237,7 @@ def extract_mention(text) end def resolve_send_mention(text) - text = text.to_s + text = text.dup.to_s text.gsub!(/@(?[0-9a-z._-]+)/) do |_| mention = Regexp.last_match[:mention] msg = "@#{mention}"