diff options
| author | John Meade <john.meade@zendesk.com> | 2024-09-09 15:22:14 +0100 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2024-09-11 17:19:18 +0000 |
| commit | efc77d535b1a0eab02af98e72f2e40ab295ee2e1 (patch) | |
| tree | ccc273b208fac188fe3b5660ae39e834f2d16250 /test/ruby/test_method_cache.rb | |
| parent | 818e20359f0415413de2888b1e6233f574882471 (diff) | |
[ruby/psych] Ensure strings with only underscores are not processed as Integer
A string similar to "0x____" should be treated as a string.
Currently it is processed as an Integer.
This alters the regex specified by http://yaml.org/type/int.html
to ensure at least one numerical symbol is present in the string
before converting to Integer.
https://github.com/ruby/psych/commit/81479b203e
Diffstat (limited to 'test/ruby/test_method_cache.rb')
0 files changed, 0 insertions, 0 deletions
