Actions
Bug #864
closedString#include? regexp
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
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
Like0
Like0