diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2015-06-19 23:53:49 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2015-06-19 23:53:49 +0900 |
| commit | a219e8b7174b700a65e1570d24ba0c8e2d709e59 (patch) | |
| tree | eb3c493c188220a5ad92bd89bfe7e6b645bd6eed | |
| parent | 6a796cb4ccd53a35c93c89c1074d556186207966 (diff) | |
| parent | d1e6d647bd3a91d58567657471f3d945836cde85 (diff) | |
| download | mruby-a219e8b7174b700a65e1570d24ba0c8e2d709e59.tar.gz mruby-a219e8b7174b700a65e1570d24ba0c8e2d709e59.zip | |
Merge pull request #2839 from yui-knk/fix/string_split_sample
[ci skip] Remove some Srting#split samples
| -rw-r--r-- | src/string.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/string.c b/src/string.c index 128578afd..0a28f2565 100644 --- a/src/string.c +++ b/src/string.c @@ -1715,10 +1715,8 @@ mrb_str_rindex_m(mrb_state *mrb, mrb_value str) * " now's the time".split #=> ["now's", "the", "time"] * " now's the time".split(' ') #=> ["now's", "the", "time"] * " now's the time".split(/ /) #=> ["", "now's", "", "the", "time"] - * "1, 2.34,56, 7".split(%r{,\s*}) #=> ["1", "2.34", "56", "7"] * "hello".split(//) #=> ["h", "e", "l", "l", "o"] * "hello".split(//, 3) #=> ["h", "e", "llo"] - * "hi mom".split(%r{\s*}) #=> ["h", "i", "m", "o", "m"] * * "mellow yellow".split("ello") #=> ["m", "w y", "w"] * "1,2,,3,4,,".split(',') #=> ["1", "2", "", "3", "4"] |
