Project

General

Profile

Actions

Bug #864

closed

String#include? regexp

Added by lordzoner (Michael Morgan) about 16 years ago. Updated over 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) about 16 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