Project

General

Profile

« Previous | Next » 

Revision 0b1f6aed

Added by nobu (Nobuyoshi Nakada) about 7 years ago

object.c: make String#to_f consistent with literal

  • object.c (rb_cstr_to_dbl): stop at successive underscores, as
    well as Float literals. [ruby-core:80098] [Bug #13105]

    • _ should be within digits
    • only one _ allowed between digits

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57979 b2dd03c8-39d4-4d8f-98ff-823fe69b080e