summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias H <apoc@sixserv.org>2015-03-09 09:24:26 +0100
committerMatthias H <apoc@sixserv.org>2015-03-09 09:24:26 +0100
commitafb262af2b1c4af103cb2f264f0f3b50137df8f2 (patch)
treeee8caace1b7e561abcf6c99f87eb2b172bae9dc8
parent68bf927fa4642cf76d696e20e69353c8722707f0 (diff)
ruby 2.2: fix a obscure regexp escaping bug
-rw-r--r--lib/rbot/irc.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rbot/irc.rb b/lib/rbot/irc.rb
index c57b252f..81f91210 100644
--- a/lib/rbot/irc.rb
+++ b/lib/rbot/irc.rb
@@ -546,7 +546,7 @@ class Regexp
RFC_CHAN = /#{CHAN_FIRST}#{CHAN_ANY}{1,49}|#{CHAN_SAFE}#{CHAN_ANY}{1,44}/
# Nick-matching regexps
- SPECIAL_CHAR = /[\x5b-\x60\x7b-\x7d]/
+ SPECIAL_CHAR = /[\[-\`\{-\}]/
NICK_FIRST = /#{SPECIAL_CHAR}|[[:alpha:]]/
NICK_ANY = /#{SPECIAL_CHAR}|[[:alnum:]]|-/
GEN_NICK = /#{NICK_FIRST}#{NICK_ANY}+/