Skip to content

Commit

Permalink
Merge pull request #39 from Pegasus204/fix/duplicate_frozen_string
Browse files Browse the repository at this point in the history
fix: duplicate frozen string
  • Loading branch information
rosylilly authored Aug 30, 2019
2 parents aa97767 + bc9da95 commit 742f31c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ruboty/adapters/slack_rtm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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!(/@(?<mention>[0-9a-z._-]+)/) do |_|
mention = Regexp.last_match[:mention]
msg = "@#{mention}"
Expand Down

0 comments on commit 742f31c

Please sign in to comment.