{"provider_name":"Hatena Blog","blog_url":"https://secret-garden.hatenablog.com/","image_url":null,"blog_title":"Secret Garden(Instrumental)","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsecret-garden.hatenablog.com%2Fentry%2F2022%2F04%2F09%2F112931\" title=\"2022/04/09 \u4eca\u56de\u306e\u6c17\u306b\u306a\u3063\u305f bugs.ruby \u306e\u30c1\u30b1\u30c3\u30c8 - Secret Garden(Instrumental)\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":"2022/04/09 \u4eca\u56de\u306e\u6c17\u306b\u306a\u3063\u305f bugs.ruby \u306e\u30c1\u30b1\u30c3\u30c8","categories":["Ruby","bugs.ruby"],"url":"https://secret-garden.hatenablog.com/entry/2022/04/09/112931","type":"rich","description":"\u4eca\u9031\u306f MatchData#[] \u306e\u30d0\u30b0\u5831\u544a\u306a\u3069\u304c\u3042\u308a\u307e\u3057\u305f\u3002 \u524d\u56de\u306e\u307e\u3068\u3081 [Bug #18670] MatchData#[start, length] pads nil values when negative start is given MatchData#[] \u306b\u30de\u30a4\u30ca\u30b9\u5024\u3092\u6e21\u3059\u3068 nil \u3067\u57cb\u3081\u3055\u308c\u305f\u914d\u5217\u3092\u8fd4\u3059\u30d0\u30b0\u5831\u544a # [-1, 5] \u306f\u6700\u5f8c\u306e\u5024\u304b\u30895\u6587\u5b57\u5206\u3092\u8fd4\u3059 # String#[] \u3084 Array#[] \u306f\u7d50\u679c\u7684\u306b\u6700\u5f8c\u306e\u5024\u3060\u3051\u3092\u8fd4\u3059 pp \"hello\"[-1, 5] # => \"o\" pp [1, 2, 3][-1, 5] # => \"3\" # MatchData#[]\u2026","author_name":"osyo-manga","provider_url":"https://hatena.blog","height":"190","published":"2022-04-09 11:29:31","author_url":"https://blog.hatena.ne.jp/osyo-manga/","width":"100%"}