From: Giuseppe Bilotta Date: Thu, 21 Jun 2012 06:03:20 +0000 (+0200) Subject: tumblr: escape the non-range dash in the group regex X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=afb3499af63d7011d2054ac0a6ec4dd0124061be;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git tumblr: escape the non-range dash in the group regex --- diff --git a/data/rbot/plugins/tumblr.rb b/data/rbot/plugins/tumblr.rb index 57675ac4..515dc479 100644 --- a/data/rbot/plugins/tumblr.rb +++ b/data/rbot/plugins/tumblr.rb @@ -188,5 +188,5 @@ plugin.map 'tumblr configure [:channel]', :action => :configuration plugin.map 'tumblr deconfigure [:channel]', :action => :deconfigure plugin.map 'tumblr configure [:channel] :email :pwd [:group]', :action => :configure, - :requirements => {:channel => Regexp::Irc::GEN_CHAN, :email => /\S+@\S+/, :group => /[A-Za-z-.]+/} + :requirements => {:channel => Regexp::Irc::GEN_CHAN, :email => /\S+@\S+/, :group => /[A-Za-z\-.]+/}