summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-05-01 00:24:22 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-05-01 00:24:22 +0200
commit9306780e41b8e16ad111376a0baba58545634557 (patch)
tree0eff3a0603408231a327c6a1c39dadd603228784 /lib
parent73e8b7259363653a7de8978a75e889a622e33460 (diff)
messagemapper.rb: keep options when removing captures in regexps
Diffstat (limited to 'lib')
-rw-r--r--lib/rbot/messagemapper.rb2
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