diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-02-23 06:26:59 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-02-23 06:26:59 +0000 |
commit | 4f3217e326c293d5162fb200cc7334e15c3872c5 (patch) | |
tree | d16717714e0d9c4f65a961d2257c6841e5da6f43 /string.c | |
parent | a10fdc92707f479961ef65de12736d8cdb852bfa (diff) |
string.c: raise a RegexpError
* string.c (get_pat_quoted): simply raise a RegexpError, TypeError
is never raised.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49696 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r-- | string.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -4055,7 +4055,7 @@ get_pat_quoted(VALUE pat, int check) pat = val; } if (check && is_broken_string(pat)) { - rb_raise(rb_eTypeError, "%"PRIsVALUE, rb_reg_new_str(pat, 0)); + rb_exc_raise(rb_reg_check_preprocess(pat)); } return pat; } |