Closed jeffreytse closed 4 years ago
Since the ruby version in this build environment is an old version,
String#match?
and Regexp#match?
are Ruby 2.4
new methods.
This new syntax is not only an alias. It's faster than other methods mainly because it doesn't update the $~
global object. According to this benchmark, it runs up to three times faster than other methods.
thanks!!!
When using ruby 2.3.8 environment, get the following error: