Skip to content

Commit

Permalink
Regex looks until end of the line.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Jackson committed Jan 17, 2013
1 parent 8a0baee commit a87a8a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/clever_turbot_cinch_plugin.rb
Expand Up @@ -43,7 +43,7 @@ def new_client
end
end

match /turbot (\w+)/i, method: :cleverbot_response
match /turbot (.+$)/i, method: :cleverbot_response
def cleverbot_response(m, query)
conversation = CleverbotConversations.get_conversation(m.user.nick)
m.reply conversation.client.write(query)
Expand Down

0 comments on commit a87a8a6

Please sign in to comment.