aboutsummaryrefslogtreecommitdiffstats
path: root/NEWS
diff options
context:
space:
mode:
authorsonots <sonots@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-06-21 07:43:26 +0000
committersonots <sonots@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-06-21 07:43:26 +0000
commit2cf26ae662667618fa91d7b3adbbf515361e3d84 (patch)
tree7cb10b195876d2defb42961be4823620ab550e65 /NEWS
parent6980bf408cd23d0f9ba7c56921a72b41d8686edd (diff)
downloadruby-2cf26ae662667618fa91d7b3adbbf515361e3d84.tar.gz
string.c: add String#delete_prefix and String#delete_prefix!
to remove leading substr [Feature #12694] [fix GH-1632] * string.c (rb_str_delete_prefix_bang): add a new method to remove prefix destuctively. * string.c (rb_str_delete_prefix): add a new method to remove prefix non-destuctively. * test/ruby/test_string.rb: add tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59132 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS2
1 files changed, 2 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 3f9f620850..d423e8abbd 100644
--- a/NEWS
+++ b/NEWS
@@ -85,6 +85,8 @@ with all sufficient information, see the ChangeLog file or Redmine
(same as "literal".freeze in Ruby 2.1+) [Feature #13295]
* String#{casecmp,casecmp?} now return nil for non-string arguments
instead of raising a TypeError. [Bug #13312]
+ * String##delete_prefix is added to remove prefix [Feature #12694]
+ * String#delete_prefix! is added to remove prefix destructively [Feature #12694]
=== Stdlib updates (outstanding ones only)