From 6187b0001b4df62ff38bb53b79f0501993570032 Mon Sep 17 00:00:00 2001 From: naruse Date: Sat, 21 Oct 2017 06:51:01 +0000 Subject: [Feature #13712] String#start_with? supports regexp git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60234 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- string.c | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'string.c') diff --git a/string.c b/string.c index 27d40fbe26..bea38df4bc 100644 --- a/string.c +++ b/string.c @@ -9219,11 +9219,20 @@ rb_str_start_with(int argc, VALUE *argv, VALUE str) for (i=0; i