Skip to content

Commit

Permalink
* expand tabs. [ci skip]
Browse files Browse the repository at this point in the history
Please consider using misc/expand_tabs.rb as a pre-commit hook.
  • Loading branch information
matzbot committed Jun 9, 2023
1 parent ab6eb37 commit d730003
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions re.c
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit d730003

Please sign in to comment.