diff options
Diffstat (limited to 'mrblib/string.rb')
| -rw-r--r-- | mrblib/string.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mrblib/string.rb b/mrblib/string.rb index 53e7c10c0..0d8ed4d01 100644 --- a/mrblib/string.rb +++ b/mrblib/string.rb @@ -137,7 +137,7 @@ class String ## # ISO 15.2.10.5.5 def =~(re) - if re.is_a? String + if re.respond_to? :to_str raise TypeError, "type mismatch: String given" end re =~ self |
