Skip to content

Fix handle empty string in String#to_f(whitespace: false)#14902

Merged
straight-shoota merged 2 commits intocrystal-lang:masterfrom
Blacksmoke16:empty-string-to-f
Aug 16, 2024
Merged

Fix handle empty string in String#to_f(whitespace: false)#14902
straight-shoota merged 2 commits intocrystal-lang:masterfrom
Blacksmoke16:empty-string-to-f

Conversation

@Blacksmoke16
Copy link
Member

Resolves #14901

@Blacksmoke16 Blacksmoke16 added kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:stdlib:numeric labels Aug 14, 2024
Co-authored-by: Sijawusz Pur Rahnama <sija@sija.pl>
@straight-shoota straight-shoota added this to the 1.14.0 milestone Aug 14, 2024
@straight-shoota straight-shoota changed the title Handle String#to_f whitespace: false with empty string Fix handle empty string in String#to_f(whitespace: false) Aug 15, 2024
@straight-shoota straight-shoota merged commit 3bf3410 into crystal-lang:master Aug 16, 2024
@Blacksmoke16 Blacksmoke16 deleted the empty-string-to-f branch January 9, 2025 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:stdlib:numeric

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Number.new causes IndexError with blank value and whitespace: false

4 participants