Project

General

Profile

Actions

Bug #864

closed

String#include? regexp

Added by lordzoner (Michael Morgan) over 15 years ago. Updated almost 13 years ago.

Status:
Rejected
Assignee:
-
Target version:
ruby -v:
Backport:
[ruby-core:20508]

Description

=begin
For consistency, String#include? should be able to take a regexp as an argument. I realize that the return value of String#index(regexp) and String#match(regexp) could be used, but String#include?(regexp) would be both more readable and less resource-intensive.
=end

Actions #1

Updated by matz (Yukihiro Matsumoto) over 15 years ago

  • Status changed from Open to Rejected

=begin
"readable" is subjective. For me, strings do not "include" patterns.
=end

Actions

Also available in: Atom PDF

Like0
Like0