summaryrefslogtreecommitdiff
path: root/re.c
diff options
context:
space:
mode:
authorgit <svn-admin@ruby-lang.org>2023-06-09 12:45:58 +0000
committergit <svn-admin@ruby-lang.org>2023-06-09 12:45:58 +0000
commitd7300038e4a07868d38699aa9ab09417283bab1f (patch)
tree3ee6485b74e63dcfbda153a4ac85d82abe55de78 /re.c
parentab6eb3786c94e69c561080cbb796c2381702a3a4 (diff)
* expand tabs. [ci skip]
Please consider using misc/expand_tabs.rb as a pre-commit hook.
Diffstat (limited to 're.c')
-rw-r--r--re.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/re.c b/re.c
index 5fc005552f..aee9180fe4 100644
--- a/re.c
+++ b/re.c
@@ -3876,8 +3876,8 @@ reg_copy(VALUE copy, VALUE orig)
rb_reg_initialize_check(copy);
if ((r = onig_reg_copy(&re, RREGEXP_PTR(orig))) != 0) {
- /* ONIGERR_MEMORY only */
- rb_raise(rb_eRegexpError, "%s", onig_error_code_to_format(r));
+ /* ONIGERR_MEMORY only */
+ rb_raise(rb_eRegexpError, "%s", onig_error_code_to_format(r));
}
RREGEXP_PTR(copy) = re;
RB_OBJ_WRITE(copy, &RREGEXP(copy)->src, RREGEXP(orig)->src);
@@ -3958,10 +3958,10 @@ rb_reg_initialize_m(int argc, VALUE *argv, VALUE self)
VALUE re = reg_extract_args(argc, argv, &args);
if (NIL_P(re)) {
- reg_init_args(self, args.str, args.enc, args.flags);
+ reg_init_args(self, args.str, args.enc, args.flags);
}
else {
- reg_copy(self, re);
+ reg_copy(self, re);
}
set_timeout(&RREGEXP_PTR(self)->timelimit, args.timeout);