/usr/lib/ruby/1.9.1/htree/regexp-util.rb is in libhtree-ruby1.9.1 0.7-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | class Regexp
def disable_capture
re = ''
self.source.scan(/\\.|[^\\\(]+|\(\?|\(/m) {|s|
if s == '('
re << '(?:'
else
re << s
end
}
if re.respond_to? :force_encoding
re.force_encoding(self.encoding)
Regexp.new(re, self.options)
else
Regexp.new(re, self.options, self.kcode)
end
end
end
|