summaryrefslogtreecommitdiff
path: root/yarp/extension.c
diff options
context:
space:
mode:
authorKevin Newton <[email protected]>2023-08-03 13:25:38 -0400
committerTakashi Kokubun <[email protected]>2023-08-16 17:47:32 -0700
commit0004565a919fde84def202432ef04cee0f7b689e (patch)
treeef0b16256ef59aa1ed2791cffc4fdaa5e5bf8b4c /yarp/extension.c
parent1ad0d198760d0f3295da86f66d099f28c9b50df7 (diff)
[ruby/yarp] Use yp_memchr in regexp parsing
https://github.com/ruby/yarp/commit/08081dd24f
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/8226
Diffstat (limited to 'yarp/extension.c')
-rw-r--r--yarp/extension.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/yarp/extension.c b/yarp/extension.c
index d4ce3625d8..4f2065a81b 100644
--- a/yarp/extension.c
+++ b/yarp/extension.c
@@ -379,7 +379,7 @@ named_captures(VALUE self, VALUE source) {
yp_string_list_t string_list;
yp_string_list_init(&string_list);
- if (!yp_regexp_named_capture_group_names(RSTRING_PTR(source), RSTRING_LEN(source), &string_list)) {
+ if (!yp_regexp_named_capture_group_names(RSTRING_PTR(source), RSTRING_LEN(source), &string_list, false, &yp_encoding_utf_8)) {
yp_string_list_free(&string_list);
return Qnil;
}