Skip to content
This repository
Browse code

Fixed RI-issue with YAML

git-svn-id: http://svn.codehaus.org/jruby/trunk@2374 961051c9-f516-0410-bf72-c9f7e237a7b7
  • Loading branch information...
commit 04aa741f7dc149c0c6fc642a972d7bab9b095bba 1 parent e17553c
Ola Bini authored
BIN  jruby/lib/jvyaml.jar
Binary file not shown
2  jruby/src/org/jruby/RubyYAML.java
@@ -473,7 +473,7 @@ public IRubyObject method6(ThreadContext tc, IRubyObject self, IRubyObject[] arg
473 473
                 return args[0].callMethod("scalar",new IRubyObject[]{rt.newString("tag:yaml.org,2002:binary"),rt.newArray(self).callMethod("pack",rt.newString("m")),rt.newString("|")});
474 474
             }
475 475
             if(((List)self.callMethod("to_yaml_properties")).isEmpty()) {
476  
-                return args[0].callMethod("scalar",new IRubyObject[]{self.callMethod("taguri"),self,self.toString().charAt(0) == ':' ? rt.newString("\"") : self.callMethod("to_yaml_style")});
  476
+                return args[0].callMethod("scalar",new IRubyObject[]{self.callMethod("taguri"),self,self.toString().startsWith(":") ? rt.newString("\"") : self.callMethod("to_yaml_style")});
477 477
             }
478 478
             
479 479
             Map mep = (Map)(new RubyHash(self.getRuntime()));

0 notes on commit 04aa741

Please sign in to comment.
Something went wrong with that request. Please try again.