diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2008-05-01 00:24:22 +0200 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2008-05-01 00:24:22 +0200 |
commit | 9306780e41b8e16ad111376a0baba58545634557 (patch) | |
tree | 0eff3a0603408231a327c6a1c39dadd603228784 /lib | |
parent | 73e8b7259363653a7de8978a75e889a622e33460 (diff) |
messagemapper.rb: keep options when removing captures in regexps
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rbot/messagemapper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rbot/messagemapper.rb b/lib/rbot/messagemapper.rb index 87bdd01f..40c4e51f 100644 --- a/lib/rbot/messagemapper.rb +++ b/lib/rbot/messagemapper.rb @@ -13,7 +13,7 @@ class Regexp new = self.source.gsub(/(^|[^\\])((?:\\\\)*)\(([^?])/) { "%s%s(?:%s" % [$1, $2, $3] } - Regexp.new(new) + Regexp.new(new, self.options) end end |