lib/psych/visitors/yaml_tree.rb in psych-2.0.2 vs lib/psych/visitors/yaml_tree.rb in psych-2.0.3

- old
+ new

@@ -282,10 +282,10 @@ style = Nodes::Scalar::LITERAL plain = false quote = false elsif o =~ /\n/ style = Nodes::Scalar::LITERAL - elsif o =~ /^\W/ + elsif o =~ /^\W[^"]*$/ style = Nodes::Scalar::DOUBLE_QUOTED else unless String === @ss.tokenize(o) style = Nodes::Scalar::SINGLE_QUOTED end