I am running a plugin that stores data in a file using YAML::dump. All works fine in 2020, but in 2021 in encpounter this error (see example below)
For as far as i researched, this only happens on strings that start with numbers and end on underscores. Anyone encountered this and does anyone have any tips to work around this ‘new feature’ ?
YAML::dump("71") => --- '71' YAML::dump("71_") => Error: #<ArgumentError: invalid value for Integer(): "71_"> .../psych/scalar_scanner.rb:104:in `Integer' .../psych/scalar_scanner.rb:104:in `parse_int' .../psych/scalar_scanner.rb:95:in `tokenize' .../psych/visitors/yaml_tree.rb:279:in `visit_String' .../psych/visitors/yaml_tree.rb:136:in `accept' .../psych/visitors/yaml_tree.rb:118:in `push' .../RubyStdLib/psych.rb:513:in `dump'