Regexp#match{?} with nil raises TypeError as String, Symbol (#1506)
To improve consistency with Regexp#match{?}
String#match(nil) returns nil instead of TypeError
nil
String#match?(nil) returns false instead of TypeError
false
Symbol#match(nil) returns nil instead of TypeError
Symbol#match?(nil) returns false instead of TypeError
Prefer exception
Follow empty ENV
Drop outdated specs
Write ruby/spec for above
https://github.com/ruby/ruby/pull/1506/files#r183242981
Regexp#match{?} with nil raises TypeError as String, Symbol (#1506)
To improve consistency with Regexp#match{?}
String#match(nil) returns
nilinstead of TypeErrorString#match?(nil) returns
falseinstead of TypeErrorSymbol#match(nil) returns
nilinstead of TypeErrorSymbol#match?(nil) returns
falseinstead of TypeErrorPrefer exception
Follow empty ENV
Drop outdated specs
Write ruby/spec for above
https://github.com/ruby/ruby/pull/1506/files#r183242981